Mitchell Hashimoto 68cb3288be do not process charCallback if control character was processed
Fixes #267

We have a mechanism `ignore_char` to ignore the `charCallback` exactly
once. It is guaranteed by all app runtimes that `keyCallback` is called
before `charCallback` and that they're called in order by key press
(you'll never get 3 `keyCallbacks` and then `charCallback` for the first
press).

We use this for example to ensure that if you bind `a` to something,
that we never actually print 'a', since the binding consumes it.

This commit sets `ignore_char` whenever we detect a key that should be
translated to a control character and written to the pty. As the comment
in the code states: we probably should've been doing this anyways. It is
a complete mystery why macOS behaves the way it does that caused us to
figure this out.
2023-08-10 11:51:11 -07:00
..
2023-03-24 19:39:50 -07:00
2023-08-08 14:27:34 +02:00
2023-08-09 07:37:18 -07:00
2023-08-08 14:27:34 +02:00
2023-02-24 07:58:29 -08:00
2023-06-30 12:15:31 -07:00
2023-08-08 14:27:34 +02:00
2023-08-08 14:27:34 +02:00
2023-06-30 12:15:31 -07:00
2023-08-08 14:27:34 +02:00
2023-08-09 15:18:35 -07:00
2022-08-18 11:42:32 -07:00
2023-06-30 12:15:31 -07:00
2022-04-26 16:18:34 -07:00
2023-08-08 14:27:34 +02:00