Sfoglia il codice sorgente

+ add ConvertEnhancedToLegacyShiftState to the interface of unit keyboard

git-svn-id: branches/unicodekvm@41532 -
nickysn 6 anni fa
parent
commit
41b93832c0
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      packages/rtl-console/src/inc/keybrdh.inc

+ 4 - 0
packages/rtl-console/src/inc/keybrdh.inc

@@ -246,4 +246,8 @@ function PollEnhancedKeyEvent: TEnhancedKeyEvent;
 { Checks if a keyevent is available, and returns it if one is found. If no
   event is pending, it returns 0 }
 
+function ConvertEnhancedToLegacyShiftState(const ShiftState: TEnhancedShiftState): Byte;
+{ Converts an enhanced shift state (as in TEnhancedKeyEvent.ShiftState) to a
+  legacy shift state (as returned by GetShiftState or GetKeyEventShiftState) }
+
 operator = (const a, b: TEnhancedKeyEvent) res: Boolean;