Comments (9)
When kanata Windows hook version is running, navigation key codes skip the E0
and thus their code is detected as NumPad. (I guess).
When NumLock is active, most of the time, navigation keys still send navigation events to apps.
But in some apps like windows emoji panel, whatsapp, etc., they send NumPad event and write numbers.
When kanata is not running, the navigation key codes are detected correctly.
Workaround is to disable numlock or using kanata wintercept variant that sends the right key codes.
It would be nice if it could be fixed in the Windows hook so it can send the right key codes, but I donβt know if itβs possible.
from kanata.
I would also like to point out that new winiov2
variants do not have this problem!
from kanata.
My defsrc
:
(defsrc
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 f13 f14 f15 f16 f17 f18 f19
102d 1 2 3 4 5 6 7 8 9 0 - = bspc ins home pgup nlck clr kp/ kp*
tab q w e r t y u i o p [ ] ret del end pgdn kp7 kp8 kp9 kp-
caps a s d f g h j k l ; ' \ kp4 kp5 kp6 kp+
lsft grv z x c v b n m , . / rsft up kp1 kp2 kp3 kprt
lctl lalt lmet spc rmet ralt rctl left down rght kp0 kp.
)
from kanata.
I've found that the workaround to this is to toggle NumLock. For some reason when I use NumLock on Windows, it doesn't actually affect the numpad buttons, e.g. kp2. It also doesn't affect the physical arrow buttons when not mapped. However, NumLock state does affect injected arrow keys and specifically only in the Windows start menu.
Very strange. Looking though the code I don't see anything particularly wrong either.
from kanata.
Aha! At least my immediate problem is solved! I realised that this was also the reason that I couldn't press "up" on Windows typing corrections/completions anymore; this is also fixed by toggling NumLock. π
from kanata.
Windows quirk, shift key overrides numlock. Linux doesn't have this issue.
There is currently no way of toggle numlock on key release so any macro that 1) uses kp keys 2) has shift and 3) needs to be held won't work.
from kanata.
I'm not sure if this one is the same bug because this affects pressing of the physical arrow keys rather than use of the numpad's alternate movement functionality.
It's still likely a Windows-only bug, but it seems to be more specific in the sense that particular Windows UI components handle injected arrow key events weirdly with NumLock.
from kanata.
I found this while working through the code for the interception driver. It turns out that at some layer, the standard nav keys are actually extended keycodes (uses E0
flag) with the base keycode mapping to the numpad layer. This is not how it looks in Linux or in the Windows hook layers though. Just interesting to note.
Since it's bug in the particular Windows UI components which are doing weird legacy stuff, I'll close this.
from kanata.
Sorry for necroposting. Another workaround would be to set
(defcfg
process-unmapped-keys no
)
This, however, might have an impact on the behavior of other things; I have a vague memory of setting that to true because something went wrong with key rolls.
from kanata.
Related Issues (20)
- Bug: In WSL space is inserted after shift or control when running kanata in host HOT 1
- Bug: windows iconbar icon isn't removed when app is killed HOT 1
- Bug: Dead keys cause keyboard modifier state to get corrupt - witnessed on colemak HOT 7
- Feature request: support platform-specific IPC which has greater convenience than TCP
- Feature request: Auto Mouse Keys layer HOT 2
- Feature request: support BSD HOT 5
- Unable to send key input due to key having not been physically released yet. HOT 3
- Bug: Release 1.6.1 macos_x86_64 executable isn't what it says. HOT 6
- Feature request: Show keystroke or can let other app know the real key is stroked. HOT 2
- Feature request: Can we have a more flexible unmod? HOT 1
- See if windows shift workaround can be compiled out for winiov2 HOT 1
- Bug: kanata does not work properly with listary HOT 3
- `release-key` releases both sides of a mod and not just one, e.g. `lctl` and `rctl` or `lmet` and `rmet` HOT 7
- Feature request: Compile-time conditional mappings HOT 1
- chordsv2 activation does not trigger early interruption of `tap-hold-press|release` HOT 9
- make macro-release-cancel also cancel virtual keys HOT 1
- Bug: switch's layer logic not recognized HOT 2
- Feature request: remove dependency on AutohotKey for EnableUIAccess
- Bluetooth keyboard cannot use without Chicony Keyboard attached on Thinkpad X1 Tablet Gen 3 HOT 5
- unable to set linux-use-trackpoint-propety 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 kanata.