[Xfce4-commits] [apps/xfce4-taskmanager] 03/03: Add Ctrl+q to close taskmanager

noreply at xfce.org noreply at xfce.org
Mon Jan 23 07:57:46 CET 2017


This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository apps/xfce4-taskmanager.

commit ee36cdcb233a5eda683edd3d2d07ceb00160be76
Author: Simon Steinbeiß <steinbeiss at ttt0100130715.vie.at.tttech.ttt>
Date:   Thu Jan 19 01:35:04 2017 +0100

    Add Ctrl+q to close taskmanager
---
 src/process-window.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/process-window.c b/src/process-window.c
index 86f84db..81246a6 100644
--- a/src/process-window.c
+++ b/src/process-window.c
@@ -281,7 +281,8 @@ xtm_process_window_key_pressed (XtmProcessWindow *window, GdkEventKey *event)
 {
 	gboolean ret = FALSE;
 
-	if (event->keyval == GDK_KEY_Escape) {
+	if (event->keyval == GDK_KEY_Escape ||
+		event->keyval == GDK_KEY_q && (event->state & GDK_CONTROL_MASK)) {
 		emit_delete_event_signal (window, (GdkEvent*) event);
 		ret = TRUE;
 	}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list