aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code/Screens/UScreenSongMenu.pas
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-06-17 14:55:48 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-06-17 14:55:48 +0000
commitbb0c744c662768afe58908129c4813da39bd3399 (patch)
tree06cc4effd46f3da5d7a94aa76ce936923e03df0b /Game/Code/Screens/UScreenSongMenu.pas
parent83633ef9c0cb3fcecadc1a6b7be66190f31b8a3b (diff)
downloadusdx-bb0c744c662768afe58908129c4813da39bd3399.tar.gz
usdx-bb0c744c662768afe58908129c4813da39bd3399.tar.xz
usdx-bb0c744c662768afe58908129c4813da39bd3399.zip
special chars in UScreenName, UScreenPartyPlayer, ScreenPartyPlayerM2 and UScreenSongMenu (Playlist)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2537 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Screens/UScreenSongMenu.pas')
-rw-r--r--Game/Code/Screens/UScreenSongMenu.pas11
1 files changed, 5 insertions, 6 deletions
diff --git a/Game/Code/Screens/UScreenSongMenu.pas b/Game/Code/Screens/UScreenSongMenu.pas
index c61331b8..1a3ee675 100644
--- a/Game/Code/Screens/UScreenSongMenu.pas
+++ b/Game/Code/Screens/UScreenSongMenu.pas
@@ -66,13 +66,12 @@ begin
if (CurMenu = SM_Playlist_New) AND (Interaction=0) then
begin
+ if not (ScanCode in [0..31, 127..159]) then
+ begin
+ Button[Interaction].Text[0].Text := Button[Interaction].Text[0].Text + chr(ScanCode);
+ Exit;
+ end;
case PressedKey of
- SDLK_0..SDLK_9, SDLK_A..SDLK_Z, SDLK_SPACE, SDLK_MINUS, SDLK_EXCLAIM, SDLK_COMMA, SDLK_SLASH, SDLK_ASTERISK, SDLK_QUESTION, SDLK_QUOTE, SDLK_QUOTEDBL:
- begin
- Button[Interaction].Text[0].Text := Button[Interaction].Text[0].Text + chr(ScanCode);
- exit;
- end;
-
SDLK_BACKSPACE:
begin
Button[Interaction].Text[0].DeleteLastL;