浏览代码

+ 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