mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Add support for ctrl+h as backspace (#1812)
This commit is contained in:
@@ -1090,6 +1090,11 @@ fn on_key_press(
|
|||||||
None
|
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 => {
|
Key::K if modifiers.ctrl => {
|
||||||
let ccursor = delete_paragraph_after_cursor(text, galley, cursor_range);
|
let ccursor = delete_paragraph_after_cursor(text, galley, cursor_range);
|
||||||
Some(CCursorRange::one(ccursor))
|
Some(CCursorRange::one(ccursor))
|
||||||
|
|||||||
Reference in New Issue
Block a user