Преглед на файлове

+ added comment about a Windows bug, which causes the keyboard layout change
detection code to not work

git-svn-id: branches/unicodekvm@41609 -

nickysn преди 6 години
родител
ревизия
837659f420
променени са 1 файла, в които са добавени 7 реда и са изтрити 1 реда
  1. 7 1
      packages/rtl-console/src/win/keyboard.pp

+ 7 - 1
packages/rtl-console/src/win/keyboard.pp

@@ -256,7 +256,13 @@ begin
     GUI apps get an WM_INPUTLANGCHANGE message in the case the keyboard layout
     changes, but unfortunately, console apps get no such notification. Therefore
     we must check and update our idea of the current keyboard layout on every
-    key event we receive. :( }
+    key event we receive. :(
+
+    Note: This doesn't actually work, due to this Windows bug:
+      https://github.com/Microsoft/console/issues/83
+    Since Microsoft considers this an open bug, and since there's no known
+    workaround, we still poll the keyboard layout, in hope that some day
+    Microsoft might fix this and issue a Windows Update. }
   UpdateKeyboardLayoutInfo(False);
 
   with ir.Event.KeyEvent do