Keyboard shortcuts not recognized often
Hello. I just started using Linux and chose to use KDE neon. I noticed one problem. When I use keyboard shortcuts to navigate and select text, they don't work that well.
One easy example is using Home and End keys on my laptop keyboard. I noticed that when I hold Fn key and press Home/End, it often ignores the shortcut completely. For example, if I hold and keep holding Fn key and then quickly click Home, End, Home, End etc. Then there is no problem. The cursor jumps to the right position. But when I quickly press Fn and Home/End (hold down Fn for a short time before pressing Home/End), it has the problem. Any ideas what to do about it? I would appreciate the help. Linux is the king of keyboard navigation. It is too bad it doesn't want to listen though :P |
The Fn key on laptops has nothing to do with Linux — it's hard-wired, so you cannot configure it. When it's held down, the processor inside the keyboard will send different codes to the computer, like 110 (Home) instead of 113 (Left), so that's why you have to press both simultaneously. The computer doesn't even know the Fn key exists — it just sees the codes that the keyboard gives it.
|
Quote:
|
Your description is confusing. The Fn key needs to be held down until you press the other key - similar to how you hold down shift to get uppercase letters and symbols (you can't just press and release shift then press A). If you are releasing Fn before pressing the other key, it will be as if you didn't press the Fn key.
This is the same on Windows and Linux, though it is possible that Windows had special software to allow the slight delay/stickyness you seem to be suggesting (maybe provided by the laptop manufacturer). Also, if you're trying to select all text on a line (via Home,Shift-End), note that the order matters - there's a difference between (e.g.) Fn-Left,Shift-Fn-Right and Fn-Left,Fn-Shift-Right. Anyhow, David is half-right - the Fn key is not a modifier (like Shift/Ctrl/Alt/Super keys), so when used it sends different keycodes to be sent than when not using it - afaict the OS doesn't get told which key you you are using in combination with Fn to cause a "Home" key press to be sent (some laptop keyboards use Left/Right, others use PgUp/PgDn, etc), but - at least on some computers - the Fn key itself does send an event when pressed and released (with keycode 151), meaning that you might be able to configure it to do what you want. If you open a terminal, you can use "xev" to see incoming keyboard events (and confirm your Fn generates an event), then I think either "xmodmap" and/or "xbindkeys" are the relevant commands for changing things. |
Quote:
I tried to use the xev command to explore what happens when I am pressing the keys. If I hold down Fn key, then wait a second, then press Left and then release Left (Fn+Left=End on my keyboard), I get this output: Code:
KeyPress event, serial 40, synthetic NO, window 0x8200001, Code:
KeyRelease event, serial 40, synthetic NO, window 0x8200001, |
All times are GMT -5. The time now is 06:32 PM. |