-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS alt (fn+option) keycode #3663
Comments
fn + option does nothing on a Mac. Alt is just written on top of it to ensure compatibility with non MacOS software.
|
They appear to register different escape sequences through key combinations: fn+option + up: ^[[5~ I currently can't do the former in my external keyboard. |
were do you see those? Even MacOS itself shows me no difference |
option + up is just up on my mac Go to system preferences -> keyboard -> Input Sources -> show input in menu bar and then "Show keyboard viewer" |
You can see the escape sequence of your input in the terminal if you do |
can you confirm that
has a different result than
? |
Yes, they are different. Over the terminal In the keyboard viewer, you can also see the difference if you keep |
well if you mapped command to a shortcut that obviously explains it. |
This is regardless of what I mapped on zsh (it's an escape sequence to command, not a keypress to escape sequence mapping). I could have an empty zsh config, or not be using zsh at all for this matter, and the above still stands. The actual keypress registers differently. |
@calvn I think if you press Alt+Page Up on your external keyboard you will get the same result as Fn+Alt+Up on your laptop. Can you give that a try? |
@skullydazed I don't have the page up keycode mapped. I'll flash a new keymap with that on it later today and give it a try. Thanks for the suggestion :) |
From the looks of the icons in the keyboard viewer it seems that the addition of |
@skullydazed That was it! Doing a |
I've been trying to find the keycode for the
alt
key press (fn+option
), but could not find it in the docs,, GH issues, or internet forums.KC_LALT
acts asoption
on MacOS, but I would like to have a key mapped foralt
. There's an open discussion in #2179 with regards to thefn
key, but it seems that mapping thefn
key is not recommended so there's no straightforward way to register that key press.Wondering if there's a keycode for it that's documented elsewhere, and if not what would be the best approach to map that to my keymap?
The text was updated successfully, but these errors were encountered: