mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Allow Escape key to cancel trades
This commit is contained in:
parent
28952f6d7b
commit
0e259294d4
@ -3127,6 +3127,8 @@ impl Hud {
|
||||
WinEvent::InputUpdate(GameInput::Escape, true) => {
|
||||
if self.typing() {
|
||||
self.ui.focus_widget(None);
|
||||
} else if self.show.trade {
|
||||
self.events.push(Event::TradeAction(TradeAction::Decline));
|
||||
} else {
|
||||
// Close windows on esc
|
||||
self.show.toggle_windows(global_state);
|
||||
|
Loading…
Reference in New Issue
Block a user