Live data from Hacker News

Designing a coherent set of keyboard shortcuts

commandbar.com

11–20 of 29 posts

Re: Designing a coherent set of keyboard shortcuts

#11
> But in our data set, a staggering 64% of CommandBar users have used at least one keyboard shortcut and 20% have used keyboard shortcuts at least 10 ten times.

That sounds like 44% of users have triggered a keyboard shortcut by mistake.

Re: Designing a coherent set of keyboard shortcuts

#12
post #2

forget coherent, i want consistent. using a mac for work and a windows machine for personal use messes with me. add in editors having inconsistent emacs keybindings, and some macos apps respecting some subset of emacs keybindings while others don't...and then a kinesis advantage to make some of the solutions non-viable

Even on Windows alone some shortcuts are terribly inconsistent. Redo (Ctrl-Y or Ctrl-Shift-Z) Replace (Ctrl-H, Ctrl-R or Ctrl-Shift-F) Save As (F12 or Ctrl-Alt-S) "Move current paragraph up" is inconsistent even between Microsoft's own programs: Alt-Shift-Up in Word, Alt-Up in VS Code and Visual Studio. Notepad++ adds to the pain with Ctrl-Shift-Up. Ctrl-F doesn't open a Find dialog box in Outlook, I could go on.

I've gone back and forth on this. It's an email client whose shortcut for Forward has been Ctrl-F for decades. After much soul-searching, I've come terms with Ctrl-E for sEarch.

Re: Designing a coherent set of keyboard shortcuts

#13
Is there any hope of handing off keyboard shortcut customisation and recognition to the user agent instead of each web app having to reinvent them? In my ideal world it would be a requested permission (so web pages wouldn’t be able to prevent normal shortcut behaviour by default) and at some initialisation step the website would hint at the things it would like to be able to do (eg purposes, similar commands, groups, suggested keys) and the browser would figure out some reasonable mappings and offer customisability. Browsers could even offer search for web app commands (like eg Mac apps when searching from the help menu).

But web apps might not like potentially giving up so much control over their interface/UX and I think the system would need to be so complicated (eg look at Emacs with nested keymaps, remapping, multiple active keymaps, transient keymaps, and even the weird translation maps) that it would be often overkill and frequently incomprehensible and practically unconfigurable.

But the status quo where web apps often have fixed keyboard shortcuts, override browser/os defaults to do totally unrelated operations, and offer little recourse also doesn’t seem great. All I really want is for Google docs on Linux to give me Emacs (or at least macOS) style shortcuts for moving in text.

Re: Designing a coherent set of keyboard shortcuts

#14
User-modifiable shortcuts plus a user willing to modify them are the key to happiness. It lets you iterate until you are satisfied. The macOS has better built-in tools for this; for Windows you need to install PowerToys. But that's just for the OS level adjustments.

Applications are in far worse shape, overall. Most applications don't support shortcut customization! Not even browsers. A remarkable oversight, IMHO. But most apps don't support shortcut customization, forcing you to learn their shortcuts, which is user-hostile no matter how well they are designed, IMHO.

Re: Designing a coherent set of keyboard shortcuts

#15

User-modifiable shortcuts plus a user willing to modify them are the key to happiness. It lets you iterate until you are satisfied. The macOS has better built-in tools for this; for Windows you need to install PowerToys. But that's just for the OS level adjustments. Applications are in far worse shape, overall. Most applications don't support shortcut customization! Not even browsers. A remarkable oversight, IMHO. Bu…

It’s a tragedy that OSs haven’t evolved to provide explicit support for that. Imagine that every application would expose a catalog of its internal actions, and that there would be an OS-level configuration facility to define your custom keyboard mappings, and possibly also macros, for the application actions. There’s no reason that every application should need to reinvent the wheel here. You could also export your configuration and import it on a different account, or possibly sync it across devices.

Similarly, the OS could provide a facility to define custom toolbars based on available actions, that could automatically be attached to the respective application windows. Basically, an OS-managed version of the toolbars that used to be ubiquitous in Windows applications.

Re: Designing a coherent set of keyboard shortcuts

#16

User-modifiable shortcuts plus a user willing to modify them are the key to happiness. It lets you iterate until you are satisfied. The macOS has better built-in tools for this; for Windows you need to install PowerToys. But that's just for the OS level adjustments. Applications are in far worse shape, overall. Most applications don't support shortcut customization! Not even browsers. A remarkable oversight, IMHO. Bu…

in mac os you can do application specific shortcuts for menu items if you specify the exact title of the menu item. (this can also be used to override a shortcut you don't like by putting it to something very unlikely to be hit like ctrl-cmd-opt-shift-f12)

https://support.apple.com/guide/mac-help/create-keyboard-sho...

sadly this is limited to menu actions only but it's at least something.

Re: Designing a coherent set of keyboard shortcuts

#17
post #15

User-modifiable shortcuts plus a user willing to modify them are the key to happiness. It lets you iterate until you are satisfied. The macOS has better built-in tools for this; for Windows you need to install PowerToys. But that's just for the OS level adjustments. Applications are in far worse shape, overall. Most applications don't support shortcut customization! Not even browsers. A remarkable oversight, IMHO. Bu…

It’s a tragedy that OSs haven’t evolved to provide explicit support for that. Imagine that every application would expose a catalog of its internal actions, and that there would be an OS-level configuration facility to define your custom keyboard mappings, and possibly also macros, for the application actions. There’s no reason that every application should need to reinvent the wheel here. You could also export your…

I guess the way it played out is that it's implemented in toolkits. So Debian, per se, doesn't know about shortcuts, but QT does. AIUI MacOS wins here by having a standard API at least for menus. Linux distros lose out by just not doing any integration. (Well, almost any; they sometimes try. I say this with love.)

Re: Designing a coherent set of keyboard shortcuts

#18
post #2

forget coherent, i want consistent. using a mac for work and a windows machine for personal use messes with me. add in editors having inconsistent emacs keybindings, and some macos apps respecting some subset of emacs keybindings while others don't...and then a kinesis advantage to make some of the solutions non-viable

Some of it is https://xkcd.com/927/ all over. EMACS is so old that it couldn't use an existing standard because it predates them. Then CUA (https://en.wikipedia.org/wiki/IBM_Common_User_Access) tried to set a standard but not everyone used it and it fell out of favor, and MacOS did its own thing, and we eventually got to a place where nobody has enough pull to set a standard so it's just a question of what convention(s) a given program decides to support (or not).

Edit: Which is the big reason why I believe that every program should allow users to customize shortcuts completely and ideally ship with presets that do their best to conform to every standard/convention possible ("do you want to preload CUA, EMACS, or MacOS convention shortcuts?").

Re: Designing a coherent set of keyboard shortcuts

#19
post #2

forget coherent, i want consistent. using a mac for work and a windows machine for personal use messes with me. add in editors having inconsistent emacs keybindings, and some macos apps respecting some subset of emacs keybindings while others don't...and then a kinesis advantage to make some of the solutions non-viable

One reason I’ve developed such a dependency on mousing and not short cuts. Now it’s just windows and macos but before it was windows, macos, unity, and gnome 3. Using the mouse is sane. 2-4 sets of shortcuts is not.

once you use a program enough,imo, you'll learn useful shortcuts even if they're incoherent. I hate editing text or programming with a mouse after using vim for a while. Same with many other programs. + you can always rebind but it's a lot of effort and stuck on your computer

Re: Designing a coherent set of keyboard shortcuts

#20
post #9

On the subject of consistent keyboard shortcuts, does anyone here have a copy of the complete Common User Access documents? What I can find online (linked to from Wikipedia below) is incomplete. https://en.wikipedia.org/wiki/IBM_Common_User_Access Alternatively, I'm also interested in a comprehensive listing of Common User Access keyboard shortcuts. Without the original documents themselves, I'm not sure how comprehe…

+1. Yes, please!

I've been searching for the same for years. I even bought a set of one of the revisions of the printed and bound documents IBM produced on an eBay auction one time, only to have the seller cancel the order.

My next step is to start hunting some university library catalogs to see if I can find them that way, but digital would be preferred!

Post reply on HN