-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
Shift Key Issue on First Character in Ghostty Terminal #981
Comments
I don’t see this issue in Windows Terminal or Alacritty (for Windows), so it looks like the problem comes from Ghostty. But I haven’t found other apps that act the same way. Can someone explain what Broot does when handling the first typed character? |
Not just Ghostty. Interpreting keys in terminal is a horrible dance. |
I've made some test. I use similar combination of key presses in broot and print_key with different modes. The combination is following: After that sequence Broot prints in input line following: dDddD;;:;;: The print_key with default parameters returns: Many terminal applications let you define key bindings but it's hard to know which ones are available.
This program shows you the key combinations that can be used in a program running in this terminal.
You chose the Kitty mode.
Combinations with several simple keys are possible as soon as there's at least one modifier key.
Type any key combination.
You typed Shift-d
You typed Shift-d
You typed d
You typed Shift-d
You typed Shift-d
You typed ;
You typed Shift-:
You typed :
You typed ;
You typed Shift-:
You typed : with Many terminal applications let you define key bindings but it's hard to know which ones are available.
This program shows you the key combinations that can be used in a program running in this terminal.
You chose the ANSI mode.
Combinations will be reduced to one simple key with optional modifiers
Type any key combination.
You typed Shift-d
You typed Shift-d
You typed d
You typed Shift-d
You typed Shift-d
You typed ;
You typed :
You typed :
You typed ;
You typed :
You typed : with Many terminal applications let you define key bindings but it's hard to know which ones are available.
This program shows you the key combinations that can be used in a program running in this terminal.
You chose the KittyMultiSimples mode.
Combinations with several simple keys are possible even without modifiers.
Type any key combination.
You typed Shift-d
You typed Shift-d
You typed d
You typed Shift-d
You typed Shift-d
You typed ;
You typed Shift-:
You typed :
You typed ;
You typed Shift-:
You typed : |
When using Broot (v1.44.7) in the Ghostty terminal emulator on macOS, the first character typed with Shift pressed does not behave as expected.
Specifically:
Steps to Reproduce
Expected Behaviour
The first character typed with Shift should be uppercase, and : should be entered correctly instead of ;.
Most likely that issue origins in Ghostty, but in other apps and places user input works as expected, so I decide to report here at first. I didn't notice similar behaviour on Windows in Windows Terminal, but check that as soon as I can.
Environment
The text was updated successfully, but these errors were encountered: