mirror of https://github.com/encounter/objdiff.git
Add escape as an alternative to back hotkey
This commit is contained in:
parent
f2b410f027
commit
d5dcc4f00f
|
@ -20,7 +20,9 @@ pub fn back_pressed(ctx: &Context) -> bool {
|
|||
return false;
|
||||
}
|
||||
ctx.input_mut(|i| {
|
||||
i.key_pressed(Key::Backspace) || i.pointer.button_pressed(PointerButton::Extra1)
|
||||
i.key_pressed(Key::Backspace)
|
||||
|| i.key_pressed(Key::Escape)
|
||||
|| i.pointer.button_pressed(PointerButton::Extra1)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue