[gnome-commander] Fixed problem #448941 (numeric keypad arrows don't work in the main window)
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Fixed problem #448941 (numeric keypad arrows don't work in the main window)
- Date: Sun, 5 Dec 2010 13:42:25 +0000 (UTC)
commit 61202a25ff27059a8d4220a5d22faab3834de9cd
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Sun Dec 5 14:42:18 2010 +0100
Fixed problem #448941 (numeric keypad arrows don't work in the main window)
NEWS | 2 +-
doc/C/gnome-commander.xml | 2 +-
src/gnome-cmd-file-list.cc | 17 +++++++++++++----
src/gnome-cmd-file-selector.cc | 5 +++++
4 files changed, 20 insertions(+), 6 deletions(-)
---
diff --git a/NEWS b/NEWS
index b6a1392..c544ba4 100644
--- a/NEWS
+++ b/NEWS
@@ -33,7 +33,7 @@ gnome-commander 1.2.8.10
---------------
Bug fixes:
- * ...
+ * Fixed problem #448941 (numeric keypad arrows don't work in the main window)
===================================
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index 4bcdf11..ca1e1b1 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -7486,7 +7486,7 @@
<para>
<itemizedlist>
<listitem>
- <para>...</para>
+ <para>Fixed problem #448941 (numeric keypad arrows don't work in the main window)</para>
</listitem>
</itemizedlist>
</para>
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index fdfacf2..b96d1e1 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -2264,6 +2264,7 @@ gboolean GnomeCmdFileList::key_pressed(GdkEventKey *event)
switch (event->keyval)
{
case GDK_Return:
+ case GDK_KP_Enter:
gnome_cmd_file_list_show_properties_dialog (this);
return TRUE;
@@ -2296,42 +2297,50 @@ gboolean GnomeCmdFileList::key_pressed(GdkEventKey *event)
return TRUE;
case GDK_Left:
+ case GDK_KP_Left:
case GDK_Right:
+ case GDK_KP_Right:
event->state -= GDK_SHIFT_MASK;
return FALSE;
case GDK_Page_Up:
case GDK_KP_Page_Up:
+ case GDK_KP_9:
priv->shift_down = TRUE;
g_signal_emit_by_name (this, "scroll-vertical", GTK_SCROLL_PAGE_BACKWARD, 0.0, NULL);
return FALSE;
case GDK_Page_Down:
case GDK_KP_Page_Down:
+ case GDK_KP_3:
priv->shift_down = TRUE;
g_signal_emit_by_name (this, "scroll-vertical", GTK_SCROLL_PAGE_FORWARD, 0.0, NULL);
return FALSE;
case GDK_Up:
case GDK_KP_Up:
+ case GDK_KP_8:
priv->shift_down = TRUE;
g_signal_emit_by_name (this, "scroll-vertical", GTK_SCROLL_STEP_BACKWARD, 0.0, NULL);
return FALSE;
case GDK_Down:
case GDK_KP_Down:
+ case GDK_KP_2:
priv->shift_down = TRUE;
g_signal_emit_by_name (this, "scroll-vertical", GTK_SCROLL_STEP_FORWARD, 0.0, NULL);
return FALSE;
case GDK_Home:
case GDK_KP_Home:
+ case GDK_KP_7:
priv->shift_down = TRUE;
g_signal_emit_by_name (this, "scroll-vertical", GTK_SCROLL_JUMP, 0.0);
return TRUE;
case GDK_End:
case GDK_KP_End:
+ case GDK_KP_1:
priv->shift_down = TRUE;
g_signal_emit_by_name (this, "scroll-vertical", GTK_SCROLL_JUMP, 1.0);
return TRUE;
@@ -2422,19 +2431,19 @@ gboolean GnomeCmdFileList::key_pressed(GdkEventKey *event)
case GDK_KP_Page_Up:
event->keyval = GDK_Page_Up;
- return TRUE;
+ return FALSE;
case GDK_KP_Page_Down:
event->keyval = GDK_Page_Down;
- return TRUE;
+ return FALSE;
case GDK_KP_Up:
event->keyval = GDK_Up;
- return TRUE;
+ return FALSE;
case GDK_KP_Down:
event->keyval = GDK_Down;
- return TRUE;
+ return FALSE;
case GDK_Home:
case GDK_KP_Home:
diff --git a/src/gnome-cmd-file-selector.cc b/src/gnome-cmd-file-selector.cc
index 47d9e5c..7a0f687 100644
--- a/src/gnome-cmd-file-selector.cc
+++ b/src/gnome-cmd-file-selector.cc
@@ -1080,15 +1080,18 @@ gboolean GnomeCmdFileSelector::key_pressed(GdkEventKey *event)
switch (event->keyval)
{
case GDK_Down:
+ case GDK_KP_Down:
gnome_cmd_dir_indicator_show_history (GNOME_CMD_DIR_INDICATOR (dir_indicator));
return TRUE;
case GDK_Left:
+ case GDK_KP_Left:
back();
stop_kp (*list);
return TRUE;
case GDK_Right:
+ case GDK_KP_Right:
forward();
stop_kp (*list);
return TRUE;
@@ -1109,10 +1112,12 @@ gboolean GnomeCmdFileSelector::key_pressed(GdkEventKey *event)
return TRUE;
case GDK_Page_Up:
+ case GDK_KP_Page_Up:
goto_directory("..");
return TRUE;
case GDK_Page_Down:
+ case GDK_KP_Page_Down:
f = list->get_selected_file();
if (f && f->info->type == GNOME_VFS_FILE_TYPE_DIRECTORY)
do_file_specific_action (list, f);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]