diff options
Diffstat (limited to 'gui/dialog.h')
-rw-r--r-- | gui/dialog.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gui/dialog.h b/gui/dialog.h index e057fd136c..9473ebf690 100644 --- a/gui/dialog.h +++ b/gui/dialog.h @@ -52,8 +52,7 @@ public: //virtual void handleIdle(); // Called periodically virtual void handleClick(int x, int y, int button); - virtual void handleKey(char key, int modifiers) // modifiers = alt/shift/ctrl etc. - { if (key == 27) close(); } + virtual void handleKey(char key, int modifiers); // modifiers = alt/shift/ctrl etc. virtual void handleMouseMoved(int x, int y, int button); virtual void handleCommand(uint32 cmd); @@ -64,7 +63,7 @@ protected: void close(); void addResText(int x, int y, int w, int h, int resID); - void addButton(int x, int y, int w, int h, char hotkey, const char *label, uint32 cmd); + void addButton(int x, int y, int w, int h, const char *label, uint32 cmd, char hotkey); }; class SaveLoadDialog : public Dialog { |