[Cuis-dev] Update: Alt+Return as a full screen toggle shortcut

Franco Lucchesi lucchesifd at gmail.com
Sat Dec 19 09:22:44 PST 2020


Hello, here are my 2 cents:

I do agree that having context sensitive shortcuts is a reasonable
improvement and idea. (Doing Ctrl+C doesn't really make a whole lot of
sense when selecting a class, doesn't it?) but aditionally also keeping
global shortcuts as a possibility should also be important, like how Alt+F4
universally exits applications.

I also think it shouldn't be too difficult to implement but I worry more
about the amount of existing code that would need to be refactored to take
advantage of this new system, maybe it isn't much but from what I could see
most shortcuts seem to be handled in different ways (compare the
KeyboardEvent I modified with focusKeyboarsFor:) maybe globally overriding
all keypresses if a class demands it will break something nobody expects.

Still, this seems like an interesting idea.

Greetings,
-Franco

On Sat, Dec 19, 2020, 12:36 <ken.dickey at whidbey.com> wrote:

> On 2020-12-19 05:48, Mauro Rizzi via Cuis-dev wrote:
>
> > Maybe we could have an object somewhere that contains a collection of
> > possible keyboard event triggers and the action they should perform?
>
> What happens now is that one uses mouseEnter and so forth with the hand
> position to determine keyboard focus.
>
> I want context sensitive keys.  E.g. Smalltalk edit bindings vs
> game-move bindings depending on what object has the keyboard focus.  I
> think of this as typical and expected.  Control is distributed. Objects
> decide.
>
> To "steal" keys from the current keyboard focus object for overriding
> keybindings would seem to require [1] a filter in the KeyboardEvent
> class and [2] a protocol which can be overridden (like
> #allowsKeyboardOverrides) so that an object which really wants keys
> (think gaming) can get all of them and then if it does not want one
> re-delegates it back to the "global" bindings.
>
> Is the above better than what exists now?  Does it carry its own weight?
>   [This is easy to implement, but adds code and is more complex, and adds
> a new protocol which everyone needs to be aware of.  There needs to be a
> strong motivator for change.]
>
> Other options?
>
> $0.02
> -KenD
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20201219/71279922/attachment.htm>


More information about the Cuis-dev mailing list