Add keyboard shortcut support to ButtonWidgets.

Hook up 'escape' and 'return' as appropriate for moving through menus.
This commit is contained in:
Paul Chote
2011-05-23 19:38:49 +12:00
parent 124f19f00b
commit 81515705ec
18 changed files with 44 additions and 2 deletions

View File

@@ -193,6 +193,7 @@ Container@SERVERBROWSER_PANEL:
Height:20
Button@BACK_BUTTON:
Id:BACK_BUTTON
Key:escape
X:0
Y:499
Width:140
@@ -207,6 +208,7 @@ Container@SERVERBROWSER_PANEL:
Text:Refresh
Button@JOIN_BUTTON:
Id:JOIN_BUTTON
Key:return
X:600
Y:499
Width:140