Comments (6)
IIRC, kitty does not currently follow the spec exactly in that lock keys are only reported when some other modifier is present as well. I think this was done to make it easier for programs that kind of support CSIu to not get confused by the lock keys.
from kitty.
Or maybe I am misremembering, need to check when am at my dev machine.
from kitty.
Checking, I see caps_lock+space reported as expected when the caps_lock is engaged and the space key is pressed.
from kitty.
Thanks for the quick fix/update! I'll update foot accordingly.
from kitty.
Just to clarify this:
The intent is that with even \e[>1u
, locked modifiers should be present for any keypress? Meaning if a user has numlock engaged, then the effect is that all keypresses are sent as escapes (since we need an escape to send the numlock mod). Same for capslock - any capslock key would then be sent as an escape sequence.
Do I have that correct?
from kitty.
No, that's precisely the use case I was thinking of when I said kitty doesn't follow the spec precisely. The lock modifiers are not reported for keys that dont already have a CSIu encoding. This is to make this mode useable in programs that still want to mostly use legacy key handling. So having caps lock engaged and pressing a will just send A. But, having caps lock engaged and pressing an function key does report the modifier since the function key is already encoded as an escape code not as a text.
So while technically this kind of violates the promise of this mode to disambiguate all keys (shift+A and caps_lock A are the same), its worth it for backwards compat. Easy to check with printf "\e[>1u"; showkey -a
from kitty.
Related Issues (20)
- Unable to paste URL from Google Chrome HOT 1
- Unable to open launch with --cwd=current when using custom session file and launch script is used HOT 1
- Unable to use `remote_control_password` option with empty password HOT 3
- Add a CLI arg to open a new OS window in the CWD HOT 7
- Slow start on labwc HOT 8
- kitten transfer Operation not permitted in macOS HOT 1
- After installing Kitty, it becomes the default opening method for multiple file types HOT 2
- Crash on external monitor plug HOT 1
- Conditional launch HOT 2
- `close_on_child_death` setting and docs are confusing HOT 2
- Kitty asks for confirmation of closing the window on the xonsh shell HOT 1
- Inherit PATH in remote control script HOT 1
- scrollback_indicator_opacity is binary / does not vary opacity
- Transparent background opacity rendering is wrong HOT 2
- Split Left Oriented. HOT 2
- Error when trying to set window placement strategy HOT 1
- Kitty not updating with kitty.conf HOT 2
- Neovim becomes transparent when it has the same background color as Kitty HOT 1
- URLs with IPv6 addresses are not recognized HOT 3
- Kitten ssh keeps sessions established even if you closed it. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitty.