[gnome-commander/gcmd-1-10] Remove old and undocumented keyboard shortcuts for the internal viewer
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-10] Remove old and undocumented keyboard shortcuts for the internal viewer
- Date: Sat, 13 Jun 2020 17:58:38 +0000 (UTC)
commit de21c42130a26615d5766039a3b16fd3338e81d9
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sat Jun 13 00:09:05 2020 +0200
Remove old and undocumented keyboard shortcuts for the internal viewer
src/intviewer/viewer-window.cc | 31 ++-----------------------------
1 file changed, 2 insertions(+), 29 deletions(-)
---
diff --git a/src/intviewer/viewer-window.cc b/src/intviewer/viewer-window.cc
index 0f0efb29..72ee8f9c 100644
--- a/src/intviewer/viewer-window.cc
+++ b/src/intviewer/viewer-window.cc
@@ -478,16 +478,8 @@ static gboolean gviewer_window_key_pressed(GtkWidget *widget, GdkEventKey *event
if (state_is_ctrl(event->state))
switch (event->keyval)
{
- case GDK_t:
- case GDK_T:
- if (w->priv->metadata_visible)
- gviewer_window_hide_metadata(w);
- else
- gviewer_window_show_metadata(w);
- return TRUE;
-
- case GDK_w:
- case GDK_W:
+ case GDK_q:
+ case GDK_Q:
gtk_widget_destroy (GTK_WIDGET (w));
return TRUE;
@@ -498,9 +490,6 @@ static gboolean gviewer_window_key_pressed(GtkWidget *widget, GdkEventKey *event
if (state_is_shift(event->state))
switch (event->keyval)
{
- case GDK_F7:
- menu_edit_find_next(nullptr, w);
- return TRUE;
default:
break;
}
@@ -508,28 +497,12 @@ static gboolean gviewer_window_key_pressed(GtkWidget *widget, GdkEventKey *event
if (state_is_alt(event->state))
switch (event->keyval)
{
- case GDK_Return:
- case GDK_KP_Enter:
- gviewer_window_show_metadata(w);
- return TRUE;
default:
break;
}
switch (state_is_blank(event->keyval))
{
- case GDK_t:
- case GDK_T:
- if (w->priv->metadata_visible)
- gviewer_window_hide_metadata(w);
- else
- gviewer_window_show_metadata(w);
- return TRUE;
-
- case GDK_F7:
- menu_edit_find(nullptr, w);
- return TRUE;
-
default:
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]