]> git.armaanb.net Git - chorizo.git/commit
Rework and extend hotkeys
authorPeter Hofmann <scm@uninformativ.de>
Thu, 19 Jun 2014 05:48:38 +0000 (07:48 +0200)
committerPeter Hofmann <scm@uninformativ.de>
Thu, 19 Jun 2014 06:42:26 +0000 (08:42 +0200)
commit65d6f54d22a37a686b10afc4f6b2af48c9f98195
tree273b7042a76ad5fe971c2ea9474c7300050432a5
parent2909ad56b93d262c08b25dee25918b079adce657
Rework and extend hotkeys

hjkl is nice in a terminal, but it poses a problem in GUI programs: If
your program is not ENTIRELY controlled via keyboard, your right hand
has to reach from the mouse to the keyboard to the mouse to the
keyboard... That's nasty.

Now, all hotkeys can be hit using your left hand.

I also think that using Control as a modifier is uncomfortable. Your
pinkie has to do a lot of work and stays in an uncomfortable position.
Using Alt/Mod1 feels better.

Secondly, there's no need for scrolling hotkeys. This only makes sense
if your program has keyboard-only usage. I can scroll using the mouse
(plus, I have screen barriers to support this).

Furthermore, there's a hotkey now that enters search mode and hotkeys to
create or destroy windows/tabs.

I also differentiate between single-handed hotkeys and dual-handed
hotkeys. When you enter the location bar or search mode, you are going
to begin typing -- thus, your right hand MUST move from the mouse to the
keyboard. As a result, it doesn't make sense to make these hotkeys
reachable using only your left hand. Mod1+l to enter the location bar is
totally fine and so is Mod1+k for searching.

Of course, it's more comfortable if you can also close the download
manager using Mod1+q. Reloading is useful as well and I NEVER want to
have "reload WITH using the cache" (major annoyance of other browsers).

To sum it up, your left hand can stay relaxed over q, w, e, d.
README
browser.c