-
Notifications
You must be signed in to change notification settings - Fork 52
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
Shifted key translation #153
Comments
Thanks for brining this up @bernardjoseph! I think your solution is fine, but it could be in a better place.
That would make it slightly cleaner. That being said, you shouldn't be using |
Actually, I'm curious about the behavior with your change and the Caps Lock key turned on. |
I must confess I do not know what the correct behavior is. Without God mode, pressing Ctrl-anything with Caps Lock on seems to ignore Caps Lock. With God mode enabled, with Caps Lock on, all alphanumeric keys are shifted. For me the behavior is ok and I am more wondering about the behavior with God mode turned off. What do you think? |
Sorry, after playing a bit more I am now convinced that the Caps Lock behavior is not good. |
A checked the behavior in View mode, which has some capital letter bindings. With Caps Lock on, all capital letter bindings are in effect. That is a strange behavior for me, I was not aware of until now. Caps Lock is not really recognized by Emacs in those cases. |
Some key bindings, like C-N for next-line, have shift-select-mode activated when called with an uppercase letter, which activates the mark. This does not work in God mode, because the key sequence is tranlated to C-S-N, which has no binding. For example, when I prees C-N with uppercase N, next-line with a highlighted region (because I have transient-mark-mode set) is called. When I press uppercase N in God mode, I get an error "Unknown key binding for 'C-S-N'". For now, I have modified the :else branch in god-mode-lookup-command as follows, which seems to work for me:
In my understanding, Emacs translates all bindings with uppercase letters without binding to their lowercase counterparts. I do not know if my solution is acceptable; it looks a bit rude to me, but it works.
The text was updated successfully, but these errors were encountered: