mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'snowram/escape-trades' into 'master'
Allow Escape key to cancel trades See merge request veloren/veloren!1989
This commit is contained in:
commit
027aca09c3
@ -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