diff options
Diffstat (limited to 'Game/Code/Screens/UScreenOptions.pas')
-rw-r--r-- | Game/Code/Screens/UScreenOptions.pas | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Game/Code/Screens/UScreenOptions.pas b/Game/Code/Screens/UScreenOptions.pas index 9c4567d1..cfb0c977 100644 --- a/Game/Code/Screens/UScreenOptions.pas +++ b/Game/Code/Screens/UScreenOptions.pas @@ -28,12 +28,17 @@ begin Result := true; If (PressedDown) Then begin // Key Down + // check normal keys + case WideUpperCase(CharCode)[1] of
+ 'Q': + begin
+ Result := false;
+ Exit;
+ end;
+ end;
+
+ // check special keys
case PressedKey of - SDLK_Q: - begin - Result := false; - end; - SDLK_ESCAPE, SDLK_BACKSPACE : begin |