[Ttssh2-commit] [3506] Alt+BS 等の一部の組み合わせで Meta8Bit が効いていなかったのを修正。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 6月 16日 (火) 19:02:22 JST


Revision: 3506
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3506
Author:   doda
Date:     2009-06-16 19:02:22 +0900 (Tue, 16 Jun 2009)

Log Message:
-----------
Alt+BS 等の一部の組み合わせで Meta8Bit が効いていなかったのを修正。

Modified Paths:
--------------
    trunk/teraterm/teraterm/keyboard.c


-------------- next part --------------
Modified: trunk/teraterm/teraterm/keyboard.c
===================================================================
--- trunk/teraterm/teraterm/keyboard.c	2009-06-16 09:37:13 UTC (rev 3505)
+++ trunk/teraterm/teraterm/keyboard.c	2009-06-16 10:02:22 UTC (rev 3506)
@@ -598,9 +598,14 @@
     CodeLength = VKey2KeyStr(VKey, HWin, Code, sizeof(Code), &CodeType, ModStat);
 
     if ((ts.MetaKey>0) && (CodeLength==1) && AltKey()) {
-      Code[1] = Code[0];
-      Code[0] = 0x1b;
-      CodeLength = 2;
+      if (ts.Meta8Bit) {
+	Code[0] |= 0x80;
+      }
+      else {
+        Code[1] = Code[0];
+        Code[0] = 0x1b;
+        CodeLength = 2;
+      }
       PeekMessage((LPMSG)&M,HWin,WM_SYSCHAR,WM_SYSCHAR,PM_REMOVE);
     }
   }



Ttssh2-commit メーリングリストの案内
Back to archive index