`CAPS` + IJKL to Arrow keys + `A` to `Shift` to make selection
katerlouis opened this issue · 0 comments
katerlouis commented
an IJKL is truly awesome.
Selecting text however is a real pain– Caps + Shift is just not doable for my little finger.
So I thought: why not map the A
-key to Shift
– but of course only when Caps
is pressed.
I tried multiple approaches:
- Using
Hyper
from https://github.com/Vonng/Capslock - Using
set_variable
- Using Caps to Fn–
But wanna stick to Caps to Fn, because that leaves the modifiers untouched; so no need to map them manually (it appears that's necessary when using Hyper)
These work great:
"manipulators": [
{"type": "basic", "from": {"key_code": "i", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "up_arrow"}] },
{"type": "basic", "from": {"key_code": "j", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "left_arrow"}]},
{"type": "basic", "from": {"key_code": "k", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "down_arrow"}]},
{"type": "basic", "from": {"key_code": "l", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "right_arrow"}]}
]
With this one combined, when I press: CAPS+A+J, I get a capital J, not the expected selection to the left
{"type": "basic", "from": {"key_code": "a", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "left_shift"}] }
And this one does only move the caret, when I Press CAPS+A+J; A is not having an effect here
{"type": "basic", "from": {"key_code": "a", "modifiers": {"mandatory": ["fn"], "optional": ["any"]}}, "to": [{"key_code": "vk_none", "modifiers": ["left_shift"] }] }
What am I missing?