Skip to content

Commit d5dcc4f

Browse files
committed
Add escape as an alternative to back hotkey
1 parent f2b410f commit d5dcc4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

objdiff-gui/src/hotkeys.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ pub fn back_pressed(ctx: &Context) -> bool {
2020
return false;
2121
}
2222
ctx.input_mut(|i| {
23-
i.key_pressed(Key::Backspace) || i.pointer.button_pressed(PointerButton::Extra1)
23+
i.key_pressed(Key::Backspace)
24+
|| i.key_pressed(Key::Escape)
25+
|| i.pointer.button_pressed(PointerButton::Extra1)
2426
})
2527
}
2628

0 commit comments

Comments
 (0)