20 ms·
I always get infuriated by custom UI components, because they are always poorly implemented for keyboard accessibility. Always. I have never met an exception. S
by chrismorgan 10y ago
I always get infuriated by custom UI components, because they are always poorly implemented for keyboard accessibility. Always. I have never met an exception. Seriously, is it that hard to copy the platform behaviour for keypresses, &c.? Sure, some of the details vary by platform, but it shouldn’t be difficult to get the vast majority of it right. Especially for Windows, given Fabric’s primary target.
Fabric is still no exception, though I find it better than the alternatives in almost everything.
(The menu bar component that seems to be used with Electron apps is extremely irritating in its keyboard handling: left and right arrow keys don’t let you switch between menus like they should.)
- roryisok 10y agoi have a little experience in this. The shortcut keys don't just vary by platform but can also vary by region / keyboard config. Ctrl-I might do italic text in your version of word, but it might do something else in another region, where italic does not start with I. Getting THESE consistent is very complex. Granted some (like arrow keys) could be done better, though in the case of electron this is part of webkit and not a separate component, so app developers (I'm pretty sure) have no control over it
- dogma1138 10y agoOffice shortcuts do not tend to vary with region unless you have a complete IME installed for Office as well (and even then most of them stay the same), and IIRC this is only available for only a few edition of Office, and I'm not sure if the past 2-3 versions even had that. Overall the rule of thumb is that anything that is ctrl/winkey + key will stay the same, what Windows changes with the region is the alt shortcuts when you click alt + the a letter key it will use a UI component (usually) starting with that letter this is a literal shortcut rather than a functional one and it's fully converted via IME (IIRC MSFT even has an API that does this automatically), ctrl shortcuts are not literal, some are but mostly due to a coincidence rather than intent. e.g. ctrl c - for copy, but x and v for cut and paste are there for ease of use due to the location while if you do with with alt then it will be Alt + E for the Edit menu, then C for Copy, T for cuT and P for Paste.