gnome-commander r1672 - in branches/gcmd-1-3: . src



Author: epiotr
Date: Mon Mar 31 17:22:56 2008
New Revision: 1672
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1672&view=rev

Log:
Allow Fx functions when in quicksearch mode editing

Modified:
   branches/gcmd-1-3/ChangeLog
   branches/gcmd-1-3/src/gnome-cmd-quicksearch-popup.cc

Modified: branches/gcmd-1-3/src/gnome-cmd-quicksearch-popup.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-quicksearch-popup.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-quicksearch-popup.cc	Mon Mar 31 17:22:56 2008
@@ -23,6 +23,7 @@
 #include "gnome-cmd-file-list.h"
 #include "gnome-cmd-file.h"
 #include "gnome-cmd-data.h"
+#include "gnome-cmd-main-win.h"
 
 using namespace std;
 
@@ -144,10 +145,23 @@
     {
         case GDK_Escape:
         case GDK_Return:
-            gnome_cmd_file_list_select_row (
-                popup->priv->fl, GNOME_CMD_CLIST (popup->priv->fl)->drag_motion_row);
+            gnome_cmd_file_list_select_row (popup->priv->fl, GNOME_CMD_CLIST (popup->priv->fl)->drag_motion_row);
             hide_popup (popup);
             return TRUE;
+
+        // for more convenience jump direct to Fx function on the current quicksearch item
+        case GDK_F3:
+        case GDK_F4:
+        case GDK_F5:
+        case GDK_F6:
+        case GDK_F8:
+            gnome_cmd_file_list_select_row (popup->priv->fl, GNOME_CMD_CLIST (popup->priv->fl)->drag_motion_row);
+            hide_popup (popup);
+            gnome_cmd_main_win_keypressed (main_win, event);
+            return TRUE;
+
+        default:
+            break;
     }
 
     return FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]