Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions crates/edit/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,13 @@ impl<'input> Iterator for Stream<'_, '_, 'input> {
let height = (csi.params[1] as CoordType).clamp(1, 32767);
return Some(Input::Resize(Size { width, height }));
}
'u' if csi.param_count > 1 => {
// Kitty keyboard events
let char = csi.params[0] as u8;
return Some(Input::Keyboard(
InputKey::from_ascii(char as char)? | Self::parse_modifiers(csi),
));
}
_ => {}
}
}
Expand Down
1 change: 1 addition & 0 deletions crates/edit/src/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2723,6 +2723,7 @@ impl<'a> Context<'a, '_> {
},
vk::C => match modifiers {
kbmod::CTRL => tb.copy(self.clipboard_mut()),
kbmod::CTRL_SHIFT => tb.copy(self.clipboard_mut()),
_ => return false,
},
vk::V => match modifiers {
Expand Down