Mitchell Hashimoto
39c2332d35
input: keypad enter should act as normal "\r" if no other seq matches
...
This matches Kitty behavior on both macOS and Linux. In certain keyboard
modes and Kitty keyboard modes, the behavior changes but those already
matched (tested).
2023-08-26 07:43:22 -07:00
Mitchell Hashimoto
e7c11f7d13
input: kitty should not encode modifier-only key unless "report all"
2023-08-24 21:24:41 -07:00
Mitchell Hashimoto
3a93aaf9cf
apprt/embedded: do not translate control characters
...
macOS translates inputs such as shift+tab into the control character tab
(ascii 0x09). Linux/GTK does not translate character inputs except to
printable characters. We don't want control character translations
because these are all handled manually by our key encoder (i.e.
translating ctrl+c to 0x03).
2023-08-24 15:01:57 -07:00
Mitchell Hashimoto
5e45dc3386
input: kitty encoding should only output unmodified utf8 if printable
2023-08-22 15:00:53 -07:00
Mitchell Hashimoto
99abff85dd
input: pc style function keys should use all mods, not effective
2023-08-21 08:10:27 -07:00
Mitchell Hashimoto
7ccf86b175
remove imgui and devmode
...
imgui has been a source of compilation challenges (our fault not theirs)
and devmode hasn't worked in awhile, so drop it.
2023-08-20 08:50:24 -07:00
Thorsten Ball
2e9b787668
macOS: new window can inherit font size
...
This is the second part of #281 and adds the same mechanism that was
added for tabs in #296 for windows.
It works exactly the same way.
2023-08-19 09:29:56 +02:00
Mitchell Hashimoto
4f5460475c
Merge pull request #296 from mitchellh/mrn/macos-inherit-font-size
...
macOS: inherit font size when creating new tab
2023-08-18 09:22:06 -07:00
Mitchell Hashimoto
b7e1122224
input: remove old TODO. This is handled now in the app runtimes
2023-08-17 12:59:22 -07:00
Thorsten Ball
d2dae7a696
macOS: inherit font size when creating new tab
...
This is one part of #281 .
2023-08-17 20:56:56 +02:00
Mitchell Hashimoto
91456fe420
input: repeat events need to be handled for Kitty w/o report events
2023-08-17 11:23:13 -07:00
Mitchell Hashimoto
78080f0cd6
input: proper optional entry handling
2023-08-17 09:52:44 -07:00
Mitchell Hashimoto
6493da0dd3
input: Kitty encodes alternate keys
2023-08-17 09:51:16 -07:00
Mitchell Hashimoto
fe0e1f5ee8
input: key must provide unshifted codepoint
2023-08-17 09:40:32 -07:00
Mitchell Hashimoto
37daf02804
core: use Kitty encoding if enabled
2023-08-17 09:02:43 -07:00
Mitchell Hashimoto
fb9dc74b29
input: lot more Kitty encoding logic
2023-08-17 08:55:37 -07:00
Mitchell Hashimoto
91ba53b081
input: KittySequence for encoding sequences
2023-08-17 08:43:40 -07:00
Mitchell Hashimoto
c5177f6609
input: begin kitty key encoding logic (not working yet)
2023-08-16 22:08:16 -07:00
Mitchell Hashimoto
b42178bf34
input: add kitty keymap data
2023-08-16 22:08:05 -07:00
Mitchell Hashimoto
9cef09c58d
input: do not send ctrl-sequences for ctrl-i,m,[
2023-08-16 14:17:31 -07:00
Mitchell Hashimoto
2ff2e018ba
input: clarify why we use all mods for unicode CSI u
2023-08-16 14:04:38 -07:00
Mitchell Hashimoto
dcf9cdd8bf
input: CSI u encoding for modified unicode chars
2023-08-16 13:57:17 -07:00
Mitchell Hashimoto
c254a8b09e
input: encoding should always write to the buf
2023-08-16 12:48:48 -07:00
Mitchell Hashimoto
aadb78394b
input: legacy encoding never emits sequence during dead key state
2023-08-16 12:48:48 -07:00
Mitchell Hashimoto
9b90692fc7
core: start on key2Callback for the new callback that uses KeyEncoder
2023-08-16 12:48:48 -07:00
Mitchell Hashimoto
a2d4e7ce29
input: legacy key encoding handles alt-as-esc for general utf8
2023-08-16 12:48:48 -07:00
Mitchell Hashimoto
871f797758
input: KeyEncoder handles the charCallback stuff now too
2023-08-16 12:48:48 -07:00
Mitchell Hashimoto
6555bb1410
input: KeyEncoder legacy encoding handles old keyCallback logic
2023-08-16 12:48:48 -07:00
Mitchell Hashimoto
f57fd99d3e
input: starting to work on KeyEncoder, got ctrl sequences
2023-08-16 12:48:48 -07:00
Mitchell Hashimoto
e7bb9c60b2
input: expand Mods size, convert everything to use it
2023-08-14 12:31:16 -07:00
Mitchell Hashimoto
3556cf8407
input: unify binding-sensitive mods to a single func
2023-08-14 11:51:10 -07:00
Mitchell Hashimoto
aec342918b
input: various more helpers
2023-08-13 15:38:30 -07:00
Mitchell Hashimoto
c0736676ce
core: match and emit function keys
2023-08-13 14:55:32 -07:00
Mitchell Hashimoto
23f6f950b9
input: add all the mappings for pc style function keys
...
Not hooked up yet.
2023-08-13 14:55:31 -07:00
Mitchell Hashimoto
a8426a90dd
input: carbon modifier bits were not correct for some modifiers
...
I went and downloaded a couple different programs that use
UCKeyTranslate and dumped their values since I cannot find the header
file and then wrote a unit test to make sure we stay accurate here.
2023-08-12 15:32:18 -07:00
Mitchell Hashimoto
65c4aada02
input: rename "unmapped" to "physical"
2023-08-11 12:02:01 -07:00
Mitchell Hashimoto
57f7a59168
input: rename Keymap to KeymapDarwin since its macos only for now
2023-08-11 12:02:01 -07:00
Mitchell Hashimoto
e787a79702
input: printable, comment on what magic indexes mean
2023-08-11 12:02:01 -07:00
Mitchell Hashimoto
1e1ad7deb9
macos: use the new self-hosted translation
2023-08-11 12:02:00 -07:00
Mitchell Hashimoto
6d439c06af
keymap had incorrect bitfield for modifiers
2023-08-11 12:02:00 -07:00
Mitchell Hashimoto
f06fecbc43
input: associate input.Key with keycodes from Chrome
2023-08-11 12:02:00 -07:00
Mitchell Hashimoto
3d23f26326
input, macos: initial work on keymapper and macos usage of it
2023-08-11 12:01:58 -07:00
Mitchell Hashimoto
0ed76b4300
scroll_page_fractional keybinding
2023-08-09 07:37:18 -07:00
Mitchell Hashimoto
a8380e937d
scroll top, bot, page up, page down binding actions
2023-08-09 07:24:11 -07:00
Kevin Hovsäter
22b8173164
Fix typos
2023-08-08 14:27:34 +02:00
Mitchell Hashimoto
22296b377a
Revert "Merge pull request #244 from mitchellh/alt-as-esc"
...
This reverts commit c139279d479682c17f63d9b57c2d56608d09d16a, reversing
changes made to 4ed21047a734d7c586debe0026e3b6ea90ed1622.
We do want to do this but this broke bindings.
2023-08-07 17:06:40 -07:00
Mitchell Hashimoto
274f934e88
key: fix wrong comment
2023-08-07 15:39:08 -07:00
Mitchell Hashimoto
32eb226fa3
non-macos doesn't support directional bindings
2023-08-07 14:52:20 -07:00
Mitchell Hashimoto
47bed51177
bindings can contain directional modifiers: left_shift+a
2023-08-07 14:43:44 -07:00
Mitchell Hashimoto
67cbabd605
make keyboard modifiers left/right-aware throughout core
2023-08-07 14:33:56 -07:00