Add support for ctrl+h as backspace (#1812)
This commit is contained in:
parent
bf15bb6e19
commit
48d48096eb
1 changed files with 5 additions and 0 deletions
|
@ -1090,6 +1090,11 @@ fn on_key_press(
|
|||
None
|
||||
}
|
||||
|
||||
Key::H if modifiers.ctrl => {
|
||||
let ccursor = delete_previous_char(text, cursor_range.primary.ccursor);
|
||||
Some(CCursorRange::one(ccursor))
|
||||
}
|
||||
|
||||
Key::K if modifiers.ctrl => {
|
||||
let ccursor = delete_paragraph_after_cursor(text, galley, cursor_range);
|
||||
Some(CCursorRange::one(ccursor))
|
||||
|
|
Loading…
Reference in a new issue