Bläddra i källkod

* initialize SState from the shift state, returned by ReadKey

git-svn-id: branches/unicodekvm@41516 -
nickysn 6 år sedan
förälder
incheckning
889e50ed58
1 ändrade filer med 1 tillägg och 6 borttagningar
  1. 1 6
      packages/rtl-console/src/unix/keyboard.pp

+ 1 - 6
packages/rtl-console/src/unix/keyboard.pp

@@ -1653,12 +1653,7 @@ begin {main}
   MyKey:=ReadKey;
   MyChar:=MyKey.AsciiChar;
   MyScan:=MyKey.VirtualScanCode shr 8;
-{$ifdef linux}
-  if is_console then
-    SState:=EnhShiftState
-  else
-{$endif}
-    Sstate:=[];
+  Sstate:=MyKey.ShiftState;
   CtrlPrefixUsed:=false;
   AltPrefixUsed:=false;
   ShiftPrefixUsed:=false;