6 ms·
While spacebar is depressed: Qt: Esc cancels. Tab cancels. Gtk-4: Spacebar auto-clicks before keyup (probably due to auto-repeat). Win32: Esc sends Esc to th
by Rygian 16d ago
While spacebar is depressed:
Qt: Esc cancels. Tab cancels.
Gtk-4: Spacebar auto-clicks before keyup (probably due to auto-repeat).
Win32: Esc sends Esc to the window. Tab cancels.
Firefox: Esc does nothing. Tab cancels.
So, mileage does vary.
Re. Enter key, that's a different key, so different discussion.
- chrismorgan 16d agoUnder Linux, Firefox, Chromium and GNOME Web (which is WebKit-based; a.k.a. Epiphany) all have Tab cancel but not Esc. The GTK 4 behaviour feels very much like a bug. I can reproduce it in gtk4-demo and in gtk3-demo. It leads to obviously-nonsensical behaviour, including messed up window focus. I’m tempted to file a bug report, but haven’t had such productive experiences with filing things on GNOME historically as with Firefox or even Chromium. Why should Enter being a different key be a different discussion? They’re both used to activate buttons, and one is behaving like every single other keyboard interaction, while the other isn’t. (Related: if a link is focused, Enter activates it, Space doesn’t, just doing the normal scroll-down-one-page.)
- Rygian 16d ago> Why should Enter being a different key be a different discussion? > if a link is focused, Enter activates it, Space doesn’t It seems that you answered your own question: different keys, different purposes. Enter is for "execute the focused action". Spacebar is for "operate the button".