[Cuis-dev] How to make a morph modal?

Hilaire Fernandes hilaire at drgeo.eu
Tue Feb 15 12:59:26 PST 2022


I think I will borrow the behavior of the menu morph and apply it to the 
pluggable list of morphs.

Not sure if it can be generalized

Le 15/02/2022 à 17:56, Luciano Notarfrancesco a écrit :
> One way to do it is to use a transparent morph covering all the world 
> and make it handle mouse down events, and close the dialog on mouse 
> down. I thought about doing something like that for all dialogs. For 
> example for the “find class” dialog (alt-f in a browser), because 
> closing it is awkward (you have to put the mouse pointer over the text 
> input to make it get the keyboard focus and then press esc). Perhaps 
> it would be better if modal dialogs kept always the keyboard focus 
> until closed. Or maybe we should avoid modal dialogs completely and 
> find other ways to do what they do. Not sure what’s the best solution, 
> but I think this something worth thinking and discussing together.
>
-- 
GNU Dr. Geo
http://drgeo.eu
http://blog.drgeo.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220215/fd5b95b8/attachment.htm>


More information about the Cuis-dev mailing list