2018-03-15 08:38:34 +00:00
|
|
|
From c6439d74d5472c95de4d5c2cdc6487bfd508e3d8 Mon Sep 17 00:00:00 2001
|
|
|
|
From: fujiwarat <takao.fujiwara1@gmail.com>
|
|
|
|
Date: Thu, 15 Mar 2018 16:57:02 +0900
|
|
|
|
Subject: [PATCH] ui/gtk3: Add num pad Enter, Down, Up, Left, Right on Emojier
|
|
|
|
|
|
|
|
BUG=rhbz#1554813
|
|
|
|
R=Shawn.P.Huang@gmail.com
|
|
|
|
|
|
|
|
Review URL: https://codereview.appspot.com/337690043
|
|
|
|
---
|
|
|
|
ui/gtk3/emojier.vala | 25 +++++++++++++++++--------
|
|
|
|
1 file changed, 17 insertions(+), 8 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/ui/gtk3/emojier.vala b/ui/gtk3/emojier.vala
|
|
|
|
index 8707e432..24029703 100644
|
|
|
|
--- a/ui/gtk3/emojier.vala
|
|
|
|
+++ b/ui/gtk3/emojier.vala
|
|
|
|
@@ -1918,6 +1918,7 @@ public class IBusEmojier : Gtk.ApplicationWindow {
|
|
|
|
return true;
|
|
|
|
break;
|
|
|
|
case Gdk.Key.Return:
|
|
|
|
+ case Gdk.Key.KP_Enter:
|
|
|
|
key_press_enter();
|
|
|
|
return true;
|
|
|
|
case Gdk.Key.BackSpace:
|
|
|
|
@@ -1959,29 +1960,37 @@ public class IBusEmojier : Gtk.ApplicationWindow {
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
case Gdk.Key.Right:
|
|
|
|
- key_press_cursor_horizontal(keyval, modifiers);
|
|
|
|
+ case Gdk.Key.KP_Right:
|
|
|
|
+ key_press_cursor_horizontal(Gdk.Key.Right, modifiers);
|
|
|
|
return true;
|
|
|
|
case Gdk.Key.Left:
|
|
|
|
- key_press_cursor_horizontal(keyval, modifiers);
|
|
|
|
+ case Gdk.Key.KP_Left:
|
|
|
|
+ key_press_cursor_horizontal(Gdk.Key.Left, modifiers);
|
|
|
|
return true;
|
|
|
|
case Gdk.Key.Down:
|
|
|
|
- key_press_cursor_vertical(keyval, modifiers);
|
|
|
|
+ case Gdk.Key.KP_Down:
|
|
|
|
+ key_press_cursor_vertical(Gdk.Key.Down, modifiers);
|
|
|
|
return true;
|
|
|
|
case Gdk.Key.Up:
|
|
|
|
- key_press_cursor_vertical(keyval, modifiers);
|
|
|
|
+ case Gdk.Key.KP_Up:
|
|
|
|
+ key_press_cursor_vertical(Gdk.Key.Up, modifiers);
|
|
|
|
return true;
|
|
|
|
case Gdk.Key.Page_Down:
|
|
|
|
- key_press_cursor_vertical(keyval, modifiers);
|
|
|
|
+ case Gdk.Key.KP_Page_Down:
|
|
|
|
+ key_press_cursor_vertical(Gdk.Key.Page_Down, modifiers);
|
|
|
|
return true;
|
|
|
|
case Gdk.Key.Page_Up:
|
|
|
|
- key_press_cursor_vertical(keyval, modifiers);
|
|
|
|
+ case Gdk.Key.KP_Page_Up:
|
|
|
|
+ key_press_cursor_vertical(Gdk.Key.Page_Up, modifiers);
|
|
|
|
return true;
|
|
|
|
case Gdk.Key.Home:
|
|
|
|
- if (key_press_cursor_home_end(keyval, modifiers))
|
|
|
|
+ case Gdk.Key.KP_Home:
|
|
|
|
+ if (key_press_cursor_home_end(Gdk.Key.Home, modifiers))
|
|
|
|
return true;
|
|
|
|
break;
|
|
|
|
case Gdk.Key.End:
|
|
|
|
- if (key_press_cursor_home_end(keyval, modifiers))
|
|
|
|
+ case Gdk.Key.KP_End:
|
|
|
|
+ if (key_press_cursor_home_end(Gdk.Key.End, modifiers))
|
|
|
|
return true;
|
|
|
|
break;
|
|
|
|
case Gdk.Key.Insert:
|
|
|
|
--
|
|
|
|
2.14.3
|
|
|
|
|