diff options
Diffstat (limited to 'Game/Code/Screens/UScreenStatDetail.pas')
-rw-r--r-- | Game/Code/Screens/UScreenStatDetail.pas | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Game/Code/Screens/UScreenStatDetail.pas b/Game/Code/Screens/UScreenStatDetail.pas index 08a378ca..14f4808e 100644 --- a/Game/Code/Screens/UScreenStatDetail.pas +++ b/Game/Code/Screens/UScreenStatDetail.pas @@ -44,12 +44,17 @@ begin Result := true;
If (PressedDown) Then
begin // Key Down
- case PressedKey of
- SDLK_Q:
+ // check normal keys
+ case WideUpperCase(CharCode)[1] of
+ 'Q': begin
Result := false;
+ Exit;
end;
-
+ end;
+
+ // check special keys
+ case PressedKey of
SDLK_ESCAPE,
SDLK_BACKSPACE :
begin
|