Browse Source

Add support for ctrl+h as backspace (#1812)

pull/1843/head
Sahil Singh 2 years ago
committed by GitHub
parent
commit
48d48096eb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      egui/src/widgets/text_edit/builder.rs

5
egui/src/widgets/text_edit/builder.rs

@ -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…
Cancel
Save