ChrisOelmueller/uh-issues — Issue #51: Can't close dialogs with Escape
Author: ChrisOelmueller
Created: 2012-02-27 00:50:12+00:00
State: open

For example the credits dialog will not close when pressing Escape.

https://github.com/unknown-horizons/unknown-horizons/blob/master/horizons/gui/gui.py#L377

Gui.show_dialog

{{{if event.getKey().getValue() == fife.Key.ESCAPE:}}}

At least on my linux machine, getValue() will return 1016, which is not the expected 27, therefore the condition isn't true. The escape key is properly detected ingame, e.g. I can open/close the ingame menu. Might have something to do with dialogs.