[Cuis-dev] Bugfixes for MenuMorph focus handling

Francisco Ciampo ciampofrancisco at gmail.com
Sun Nov 23 09:13:23 PST 2025


Hello,
  I noticed that keyboard navigation in menus had some problems due to
the keyboard and mouse focus being handled separately.
In particular, pressing ESC in a submenu would only delete that submenu and
lose focus, preventing one from going back or closing the main menu with
only the keyboard. There was also a minor inconsistency where pressing
Return on an item with a submenu would focus it but not select its first
item, which made the action invisible.
Attached are some improvements which unify the activation from mouse and
keyboard in MenuMorph and MenuItemMorph and fix these issues.
Regards,
Ciampo Francisco

PS: I was not sure if I should add a description behind the logic for the
changes in the ChangeSet preamble, given that they are small. Would doing
this be better on future contributions? Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20251123/c0b646fd/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 7710-CuisCore-CiampoFrancisco-2025Nov22-22h43m-cf.001.cs.st
Type: application/octet-stream
Size: 3652 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20251123/c0b646fd/attachment.obj>


More information about the Cuis-dev mailing list