gnome-commander r1696 - in branches/gcmd-1-3: . doc src
- From: epiotr svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-commander r1696 - in branches/gcmd-1-3: . doc src
- Date: Tue, 8 Apr 2008 17:24:53 +0100 (BST)
Author: epiotr
Date: Tue Apr 8 17:24:53 2008
New Revision: 1696
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=1696&view=rev
Log:
Added new key binding: SUPER+F for file search
Modified:
branches/gcmd-1-3/ChangeLog
branches/gcmd-1-3/doc/keys.txt
branches/gcmd-1-3/src/gnome-cmd-user-actions.cc
Modified: branches/gcmd-1-3/doc/keys.txt
==============================================================================
--- branches/gcmd-1-3/doc/keys.txt (original)
+++ branches/gcmd-1-3/doc/keys.txt Tue Apr 8 17:24:53 2008
@@ -1,4 +1,4 @@
-Keyboard mapping for GNOME Commander v1.2
+Default keyboard mapping for GNOME Commander v1.2
-----------------------------------------
F1 Help
@@ -77,6 +77,8 @@
CTRL+\ Go to the root directory
CTRL+` Go to the home directory
+SUPER+F Search files
+
DELETE Delete files
CTRL+C Copy files to clipboard (not a global one yet)
Modified: branches/gcmd-1-3/src/gnome-cmd-user-actions.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-user-actions.cc (original)
+++ branches/gcmd-1-3/src/gnome-cmd-user-actions.cc Tue Apr 8 17:24:53 2008
@@ -213,7 +213,7 @@
register_action(GDK_F6, "file.rename");
register_action(GDK_F7, "file.mkdir");
register_action(GDK_F8, "file.delete");
- register_action(GDK_F9, "edit.search");
+ // register_action(GDK_F9, "edit.search"); // do not register F9 here, as edit.search action wouldn't be checked for registration later
register_action(GDK_F10, "file.exit");
load("key-bindings");
@@ -237,7 +237,14 @@
register_action(GDK_CONTROL_MASK, GDK_F12, "edit.filter");
if (!registered("edit.search"))
+ {
register_action(GDK_MOD1_MASK, GDK_F7, "edit.search");
+#ifdef HAVE_GTK_2_10
+ register_action(GDK_SUPER_MASK, GDK_F, "edit.search");
+#else
+ register_action(GDK_MOD4_MASK, GDK_F, "edit.search");
+#endif
+ }
if (!registered("file.advrename"))
{
@@ -315,6 +322,9 @@
if (!registered("view.refresh"))
register_action(GDK_CONTROL_MASK, GDK_R, "view.refresh");
+
+ unregister(GDK_F9); // unregister F9 if defined in [key-bindings]
+ register_action(GDK_F9, "edit.search"); // and overwrite it with edit.search action
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]