mirror of
https://github.com/wez/wezterm.git
synced 2024-12-18 02:42:05 +03:00
keyboard: fix key up events in neovim + kitty keyboard protocol
refs: https://github.com/wez/wezterm/issues/1141
This commit is contained in:
parent
f58f47522d
commit
f6d5dfde15
@ -326,6 +326,10 @@ impl KeyCode {
|
|||||||
) -> Result<String> {
|
) -> Result<String> {
|
||||||
use KeyCode::*;
|
use KeyCode::*;
|
||||||
|
|
||||||
|
if !flags.contains(KittyKeyboardFlags::REPORT_EVENT_TYPES) && !is_down {
|
||||||
|
return Ok(String::new());
|
||||||
|
}
|
||||||
|
|
||||||
// Normalize
|
// Normalize
|
||||||
let key = match self {
|
let key = match self {
|
||||||
Char('\r') => Enter,
|
Char('\r') => Enter,
|
||||||
|
Loading…
Reference in New Issue
Block a user