[Ttssh2-commit] [3878] 一部のキーの VKEY 名の指定がおかしかったのを修正。

svnno****@sourc***** svnno****@sourc*****
2010年 5月 12日 (水) 12:43:23 JST


Revision: 3878
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3878
Author:   doda
Date:     2010-05-12 12:43:22 +0900 (Wed, 12 May 2010)

Log Message:
-----------
一部のキーの VKEY 名の指定がおかしかったのを修正。

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


-------------- next part --------------
Modified: trunk/teraterm/teraterm/keyboard.c
===================================================================
--- trunk/teraterm/teraterm/keyboard.c	2010-05-11 12:45:40 UTC (rev 3877)
+++ trunk/teraterm/teraterm/keyboard.c	2010-05-12 03:43:22 UTC (rev 3878)
@@ -458,7 +458,7 @@
       }
       break;
     case '2':
-    case '@':
+//  case VK_OEM_3: /* @ (106-JP Keyboard) */
       if (Control && !ts.StrictKeyMapping) {
 	// Ctrl-2 -> NUL
 	CodeLength = 1;
@@ -487,7 +487,7 @@
       }
       break;
     case '6':
-    case '^':
+//  case VK_OEM_7: /* ^ (106-JP Keyboard) */
       if (Control && !ts.StrictKeyMapping) {
 	// Ctrl-6 -> RS
 	CodeLength = 1;
@@ -495,9 +495,7 @@
       }
       break;
     case '7':
-    case '/':
-    case '?':
-    case '_':
+    case VK_OEM_2: /* / (101/106-JP Keyboard) */
       if (Control && !ts.StrictKeyMapping) {
 	// Ctrl-7 -> US
 	CodeLength = 1;
@@ -511,6 +509,13 @@
 	Code[0] = 0x7f;
       }
       break;
+    case VK_OEM_102:
+      if (Control && Shift && !ts.StrictKeyMapping) {
+	// Shift-Ctrl-_ (102RT/106-JP Keyboard)
+	CodeLength = 1;
+	Code[0] = 0x7f;
+      }
+      break;
     default:
       if ((VKey==VKBackslash) && Control)
       { // Ctrl-\ support for NEC-PC98



Ttssh2-commit メーリングリストの案内