Hi Kovid,
This is related to #910, and we still have an issue with backspace not working properly using Chinese input methods on macOS.
Here's a screenshot of what would happen if we press delete halfway through the Chinese input process. demo
Here's the output log:
{/App/kit/Con/MacOS}./kitty -v
kitty 0.13.3 created by Kovid Goyal
{/App/kit/Con/MacOS}./kitty --debug-keyboard
2019-03-13 22:46:28.654 kitty[30420:707407] scancode: 0x0 (a) mods: none char_count: 1 deadKeyState: 0
2019-03-13 22:46:28.655 kitty[30420:707407] text: 0x61 glfw_key: A
on_key_input: glfw key: 65 native_code: 0x0 action: PRESS mods: 0x0 text: 'a' state: 0 sent text to child
on_key_input: glfw key: 65 native_code: 0x0 action: RELEASE mods: 0x0 text: '' state: 0 ignoring as keyboard mode does not allow release events
2019-03-13 22:46:28.880 kitty[30420:707407] scancode: 0xb (b) mods: none char_count: 1 deadKeyState: 0
2019-03-13 22:46:28.880 kitty[30420:707407] text: 0x62 glfw_key: B
on_key_input: glfw key: 66 native_code: 0xb action: PRESS mods: 0x0 text: 'b' state: 0 sent text to child
on_key_input: glfw key: 66 native_code: 0xb action: RELEASE mods: 0x0 text: '' state: 0 ignoring as keyboard mode does not allow release events
2019-03-13 22:46:29.062 kitty[30420:707407] scancode: 0x8 (c) mods: none char_count: 1 deadKeyState: 0
2019-03-13 22:46:29.063 kitty[30420:707407] text: 0x63 glfw_key: C
on_key_input: glfw key: 67 native_code: 0x8 action: PRESS mods: 0x0 text: 'c' state: 0 sent text to child
on_key_input: glfw key: 67 native_code: 0x8 action: RELEASE mods: 0x0 text: '' state: 0 ignoring as keyboard mode does not allow release events
2019-03-13 22:46:29.288 kitty[30420:707407] scancode: 0x2 (d) mods: none char_count: 1 deadKeyState: 0
2019-03-13 22:46:29.288 kitty[30420:707407] text: 0x64 glfw_key: D
on_key_input: glfw key: 68 native_code: 0x2 action: PRESS mods: 0x0 text: 'd' state: 0 sent text to child
on_key_input: glfw key: 68 native_code: 0x2 action: RELEASE mods: 0x0 text: '' state: 0 ignoring as keyboard mode does not allow release events
on_key_input: glfw key: 341 native_code: 0x3b action: PRESS mods: 0x2 text: '' state: 0 sent key to child
on_key_input: glfw key: 341 native_code: 0x3b action: RELEASE mods: 0x0 text: '' state: 0 ignoring as keyboard mode does not allow release events
2019-03-13 22:46:30.633 kitty[30420:707407] scancode: 0x28 (k) mods: none char_count: 1 deadKeyState: 0
2019-03-13 22:46:30.644 kitty[30420:707407] text: <none> glfw_key: K
on_key_input: glfw key: 75 native_code: 0x28 action: PRESS mods: 0x0 text: '' state: 0 sent key to child
2019-03-13 22:46:30.722 kitty[30420:707407] scancode: 0xe (e) mods: none char_count: 1 deadKeyState: 0
2019-03-13 22:46:30.725 kitty[30420:707407] text: <none> glfw_key: E
on_key_input: glfw key: 69 native_code: 0xe action: PRESS mods: 0x0 text: '' state: 0 sent key to child
on_key_input: glfw key: 75 native_code: 0x28 action: RELEASE mods: 0x0 text: '' state: 0 ignoring as keyboard mode does not allow release events
on_key_input: glfw key: 69 native_code: 0xe action: RELEASE mods: 0x0 text: '' state: 0 ignoring as keyboard mode does not allow release events
2019-03-13 22:46:31.100 kitty[30420:707407] scancode: 0x10 (y) mods: none char_count: 1 deadKeyState: 0
2019-03-13 22:46:31.105 kitty[30420:707407] text: <none> glfw_key: Y
on_key_input: glfw key: 89 native_code: 0x10 action: PRESS mods: 0x0 text: '' state: 0 sent key to child
on_key_input: glfw key: 89 native_code: 0x10 action: RELEASE mods: 0x0 text: '' state: 0 ignoring as keyboard mode does not allow release events
2019-03-13 22:46:32.235 kitty[30420:707407] scancode: 0x33 (<cc>) mods: none char_count: 1 deadKeyState: 0
2019-03-13 22:46:32.239 kitty[30420:707407] text: <none> glfw_key: BACKSPACE
on_key_input: glfw key: 259 native_code: 0x33 action: PRESS mods: 0x0 text: '' state: 0 sent key to child
on_key_input: glfw key: 259 native_code: 0x33 action: RELEASE mods: 0x0 text: '' state: 0 ignoring as keyboard mode does not allow release events
2019-03-13 22:46:33.845 kitty[30420:707407] scancode: 0x31 ( ) mods: none char_count: 1 deadKeyState: 0
2019-03-13 22:46:33.848 kitty[30420:707407] text: 0xe5 0x85 0x8b glfw_key: SPACE
on_key_input: glfw key: 32 native_code: 0x31 action: PRESS mods: 0x0 text: '克' state: 0 sent text to child
on_key_input: glfw key: 32 native_code: 0x31 action: RELEASE mods: 0x0 text: '' state: 0 ignoring as keyboard mode does not allow release events
on_key_input: glfw key: 341 native_code: 0x3b action: PRESS mods: 0x2 text: '' state: 0 sent key to child
2019-03-13 22:46:34.891 kitty[30420:707407] scancode: 0x20 (u) mods: ctrl char_count: 1 deadKeyState: 0
2019-03-13 22:46:34.893 kitty[30420:707407] text: <none> glfw_key: U
on_key_input: glfw key: 85 native_code: 0x20 action: PRESS mods: 0x2 text: '' state: 0 sent key to child
on_key_input: glfw key: 85 native_code: 0x20 action: RELEASE mods: 0x2 text: '' state: 0 ignoring as keyboard mode does not allow release events
2019-03-13 22:46:35.291 kitty[30420:707407] scancode: 0x2 (d) mods: ctrl char_count: 1 deadKeyState: 0
2019-03-13 22:46:35.293 kitty[30420:707407] text: <none> glfw_key: D
on_key_input: glfw key: 68 native_code: 0x2 action: PRESS mods: 0x2 text: '' state: 0 sent key to child
For the record, the key sequence is: a, b, c, d, Ctrl-Space(IME switch), k, e, y, Del(backspace), space, Ctrl-U, Ctrl-D.
Once again, thanks for this great terminal emulator and I've been using it for some months and had recommended to the others.
Hi Kovid,
This is related to #910, and we still have an issue with backspace not working properly using Chinese input methods on macOS.
Here's a screenshot of what would happen if we press delete halfway through the Chinese input process. demo
Here's the output log:
For the record, the key sequence is: a, b, c, d, Ctrl-Space(IME switch), k, e, y, Del(backspace), space, Ctrl-U, Ctrl-D.
Once again, thanks for this great terminal emulator and I've been using it for some months and had recommended to the others.