Skip to content

Commit

Permalink
Add support for ctrl+h as backspace (#1812)
Browse files Browse the repository at this point in the history
  • Loading branch information
zenofsahil committed Jul 21, 2022
1 parent bf15bb6 commit 48d4809
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions egui/src/widgets/text_edit/builder.rs
Expand Up @@ -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))
Expand Down

0 comments on commit 48d4809

Please sign in to comment.