소스 검색

+ 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