File grub2-tablet_keys.patch of Package grub2

--- grub-2.02~beta3/grub-core/term/at_keyboard.c.orig
+++ grub-2.02~beta3/grub-core/term/at_keyboard.c
@@ -105,12 +105,12 @@
     /* 0x6c */ 0,                             0,
     /* 0x6e */ 0,                             0,
     /* 0x70 */ 0,                             0,
-    /* 0x72 */ 0,                             GRUB_KEYBOARD_KEY_JP_RO,
+	/* 0x72 */ GRUB_KEYBOARD_KEY_DOWN,        GRUB_KEYBOARD_KEY_UP,
     /* 0x74 */ 0,                             0,
     /* 0x76 */ 0,                             0,
     /* 0x78 */ 0,                             0,
     /* 0x7a */ 0,                             0,
-    /* 0x7c */ 0,                             GRUB_KEYBOARD_KEY_JP_YEN,
+    /* 0x7c */ 0,                             GRUB_KEYBOARD_KEY_ENTER,
     /* 0x7e */ GRUB_KEYBOARD_KEY_KPCOMMA
   };
 
@@ -456,6 +456,21 @@
     }
   if (!ret)
     {
+	  if(at_key == 0x5b || at_key == 0x30 || at_key == 0x2e)
+	  {
+		  if(at_key == 0x5b)
+		  {
+			ret = set1_mapping[0x7d];
+		  }
+		  else if(at_key == 0x30)
+		  {
+			ret = set1_mapping[0x73];  
+		  }
+		  else
+			ret = set1_mapping[0x72];
+	  }
+	  else
+	  {
       if (was_ext)
 	grub_dprintf ("atkeyb", "Unknown key 0xe0+0x%02x from set %d\n",
 		      at_key, current_set);
@@ -463,6 +478,7 @@
 	grub_dprintf ("atkeyb", "Unknown key 0x%02x from set %d\n",
 		      at_key, current_set);
       return -1;
+	  }
     }
   return ret;
 }
openSUSE Build Service is sponsored by