2
0
Эх сурвалжийг харах

+ 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 жил өмнө
parent
commit
837659f420

+ 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