Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 24971  / 2 Years ago, tue, february 22, 2022, 3:43:39

Is there a place in "Ubuntu" that stores a complete list of what keys/combinations/shortcuts are bound to what?



What are Unity's keyboard and mouse shortcuts? list some "Unity" shortcuts to the Dash, Launcher, etc. and How to list Compiz keybindings in use? shows a way to list compiz bindings, but I'm looking for more than that (not just a few of the keybindings limited only to Unity or Compiz) although it's a start.



Is there a global list of key bindings/key combinations/keyboard Shortcuts in use, that is stored somewhere in Ubuntu or is there a way to compile and list them? One that applies to Ubuntu and things running in it (Unity, Compiz, Shortcuts to Programs, etc.).



Surely, Ubuntu must store this somewhere for the key combination pressed on the keyboard to be directed to what it's connected with? If there is no such place in Ubuntu, then post so as an answer, so future users, that search, will know.


More From » keyboard

 Answers
3

Your window manager gets the any key events before applications do, so if it wants to consume those events, it does so and your applications will never receive them. If the window manager does not want to react to the key events itself, it passes them along to the application.



You can verify this by yourself in the following way:




  1. Start a terminal.

  2. Start xev | grep KeyPress, the X event viewer.

  3. Press Alt, note that xev shows that it got the key event in its terminal window.

  4. Press Ctrl, again note that xev got the event. Take note of what the terminal window looks like right now.

  5. Press Left arrow to go to another workspace. (I'm assuming you have that as a window manager shortcut key.)

  6. Press Right arrow to go back to where you are running xev. Note that it never received any key events for you switching workspaces via left and right arrow keys -- the output is the same as it was in Step 4.



So you see that the window manager in practice gets all key events and if it does not want to capture them, it passes them along to the application. The application then gets to do the same for its own widgets (like how you can press Enter all day long in your web browser but it won't do anything until you put the cursor in the address bar or some field where you can enter text).



It is up to the application to set its own shortcuts, and applications are configured independently of each other.



In KDE 3.x, if I recall correctly, you could set the default shortcuts (e.g. Ctrl-s for save) in the KDE Control Center and it would apply to all applications written with the Qt toolkit, but I don't know if that's still possible since their switch to KDE 4.


[#40577] Wednesday, February 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lowstonnequ

Total Points: 279
Total Questions: 125
Total Answers: 123

Location: Finland
Member since Sun, Dec 5, 2021
2 Years ago
lowstonnequ questions
Wed, Oct 26, 22, 14:40, 2 Years ago
Tue, Feb 28, 23, 01:39, 1 Year ago
Wed, Dec 1, 21, 23:44, 2 Years ago
Thu, Apr 21, 22, 13:13, 2 Years ago
;