Add Ctrl+L shortcut to select whole line (#541)

This commit is contained in:
recently-avoid-dyin 2025-07-02 23:20:51 +08:00 committed by GitHub
parent d27ba98684
commit 71b97e95f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2655,6 +2655,10 @@ impl<'a> Context<'a, '_> {
kbmod::CTRL => tb.delete(CursorMovement::Word, -1),
_ => return false,
},
vk::L => match modifiers {
kbmod::CTRL => tb.select_line(),
_ => return false,
},
vk::X => match modifiers {
kbmod::CTRL => tb.cut(self.clipboard_mut()),
_ => return false,