[Cuis-dev] focusKeyboardFor:

Hilaire Fernandes hfern at free.fr
Sun Jun 29 02:37:58 PDT 2025


Hi,

In the Morph>>keyStroke> method I don't understand the message 
#focusKeyboardFor:

What is it supposed to do. The related method returns a boolean, but in 
which circumstance is a bit obscure when reading at the message name.

Thanks

Hilaire


keyStroke: aKeyboardEvent
     "Handle a keystroke event.
     Subclasses should call super, and check if the event was handled."

     (self focusKeyboardFor: aKeyboardEvent)
         ifTrue: [ ^ aKeyboardEvent wasHandled: true ].

     aKeyboardEvent anyModifierKeyPressed ifTrue: [
         (self keyboardShortcut: aKeyboardEvent)
             ifTrue: [ ^ aKeyboardEvent wasHandled: true ]].

-- 
http://mamot.fr/@drgeo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250629/f50b1338/attachment.htm>


More information about the Cuis-dev mailing list