[squeak-dev] Merge Request: defaultFocusMorph.cs

Marcel Taeumel marcel.taeumel at hpi.de
Fri Nov 19 17:17:25 UTC 2021


Merged.

Revisions in SystemWindow >> #defaultFocusMorph and more tool-specific use of #defaultFocus: besides the preference browser.
Am 20.10.2021 16:31:00 schrieb christoph.thiede at student.hpi.uni-potsdam.de <christoph.thiede at student.hpi.uni-potsdam.de>:
Hi all,

if a new window is invoked via a keyboard gesture, with the proposed changeset, the keyboard focus is automatically passed to the new window. See SystemWindow >> #defaultFocusMorph. By default, the first keyboard-interested (sub)+morph is selected, but you can specify a different focus holder by setting the #defaultFocusMorph property of the window or the #defaultFocus parameter of the pluggable window spec.

I think this improves the keyboard workflow in Squeak a bit. For instance, it enables the following workflows:
- Ctrl + 0 (search bar), type '6 * 7', Alt + o (spawn), Alt + p (print it)
- Ctrl + 3 (Tools menu), type 'browser', Enter, Alt + f (find), type 'Object', Enter

Please review and merge if you don't have any objections. Happy squeaking! :-)

Best,
Christoph

---
Sent from Squeak Inbox Talk [https://github.com/hpi-swa-lab/squeak-inbox-talk]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20211119/9c2885d4/attachment-0001.html>


More information about the Squeak-dev mailing list