Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for December 5, 2013
Deadline scheduling: coming soon?
LWN.net Weekly Edition for November 27, 2013
ACPI for ARM?
LWN.net Weekly Edition for November 21, 2013
i18n is harder than just dumping an accessibility menu on everyone
GNOME Shell, extensions, and control
Posted Jun 16, 2011 9:21 UTC (Thu) by ekj (subscriber, #1524)
Ctrl+PgUp/PgDown works for swapping between tabs in a program though, atleast with my Gnome-3 setup. It's not entirely optimal since PgUp and PgDown typically requires moving your hand further, but atleast it works. Thus I can use Alt+Tab for switching application and Ctrl+PgUp/Down for swapping between the tabs of a single application.
Posted Jun 16, 2011 11:39 UTC (Thu) by mjg59 (subscriber, #23239)
Posted Jun 21, 2011 21:32 UTC (Tue) by nix (subscriber, #2304)
Attempting to base things on keyboard geometry is just a bad idea.
Posted Jun 21, 2011 21:40 UTC (Tue) by mjg59 (subscriber, #23239)
Posted Jun 23, 2011 14:49 UTC (Thu) by nix (subscriber, #2304)
Posted Jun 23, 2011 14:56 UTC (Thu) by mjg59 (subscriber, #23239)
Posted Jun 23, 2011 18:21 UTC (Thu) by nix (subscriber, #2304)
More generally, the whole area of scancodes is a confusing and ill-thought-out mess replete with historical horrors, best avoided. At this point I have no idea *where* GNOME Shell gets its codes from, and no clue what key is used for this feature at all, only that the key above tab doesn't generate any of the codes you've suggested (not scancodes, nor X keycodes) on any keyboard I have access to, conventional or not. I'd have to look at the code... (I'm fairly sure it's not actually using scancodes, though, because that would require raw access. Are you talking about X keycodes? They're quite different.)
Why not just make this stuff an option so people can set a key and know what it is without having to go through all this trouble? Or use a keysym like every single other X app since the dawn of time?
Posted Jun 23, 2011 18:27 UTC (Thu) by mjg59 (subscriber, #23239)
Posted Jun 23, 2011 21:26 UTC (Thu) by nix (subscriber, #2304)
If the default can be overridden, then I have no complaints: most users *are* indeed using evdev (even users of obscure keyboards): that I am not is entirely my own damn fault.
Posted Jun 16, 2011 12:33 UTC (Thu) by ovitters (subscriber, #27950)
Posted Jun 16, 2011 13:48 UTC (Thu) by cesarb (subscriber, #6266)
Well, let me test. To my side I have an EeePC 701 with a Brazilian keyboard layout (ABNT-2) running Fedora 15.
I open one terminal and duplicate it to test. Alt-Tab stays on the same terminal, as expected. The key above Tab on this EeePC 701 is 1/!/¹. Try Alt-1... Nope, it makes bash show (arg: 1).
The exact shortcut on this EeePC is Alt-'. The '/" key is two rows above tab and one key to the right (mostly above 2/@/²).
I think you are assuming too much that, on a laptop keyboard (especially for the smaller ones), the layout will match the layout for a full-sized keyboard of the same type.
Posted Jun 16, 2011 16:00 UTC (Thu) by ovitters (subscriber, #27950)
If your keyboard is so small that it only has a 1, then there you can change the keyboard shortcut. But that is only because there is no such key..
Posted Jun 16, 2011 20:34 UTC (Thu) by cesarb (subscriber, #6266)
All the keys except //? are there (though PgUp, PgDn, Home, End, and \/| need the Fn key), and all keys send the correct codes for an ABNT-2 keyboard.
The keys just have been rearranged a bit to save space. In this case, '/" was pushed up to between Esc and F1, freeing space for the number row.
(To help better visualize the situation: on a full ABNT-2 keyboard, the first row starts with Esc, F1, F2, the second row starts with '/", 1/!/¹, 2/@/², and the third row starts with Tab, Q, W. On the EeePC 701, the first row starts with Esc, '/", F1, F2, the second row starts with 1/!/¹, 2/@/², and the third row starts with Tab, Q, W.)
Of course, now that I know the mnemonic is "the key which would be above Tab if it was a full-sized desktop keyboard", I can simply memorize that it is "Alt-' if on an ABNT-2 keyboard, Alt-` if on a US-International keyboard" (the two kinds of keyboard usually found on Brazil), and hope it works even when ` is a dead key (which it would be on a US-International keyboard layout).
Posted Jun 16, 2011 20:46 UTC (Thu) by ovitters (subscriber, #27950)
If you do not have a sane key above the tab, the obviously you'll need to configure it differently.
This is so logical to me that I fail to see what you're trying to object against..
Posted Jun 18, 2011 0:17 UTC (Sat) by nlucas (subscriber, #33793)
It shows the decision to use that key didn't take into account the reality of the world.
Nothing new there, really. I never could use emacs in a sane way because the default shortcuts didn't make sense in my keyboard, and having to reprogram the shortcuts every time tends to end if there is a viable alternative (like vi, which suffers from the same problem, but not with the most used shortcuts).
Posted Jun 20, 2011 9:09 UTC (Mon) by jschrod (subscriber, #1646)
Did you (meaning "you" as a substitute for some anonymous GNOME devs) anticipate that?
Posted Jun 20, 2011 11:38 UTC (Mon) by mjg59 (subscriber, #23239)
Posted Jun 20, 2011 12:46 UTC (Mon) by jschrod (subscriber, #1646)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds