[evolution] Add an alternative shortcut to show the WebKit inspector
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Add an alternative shortcut to show the WebKit inspector
- Date: Tue, 9 Feb 2021 10:01:03 +0000 (UTC)
commit e6488eb610b57509226710599078fa0a33364270
Author: Milan Crha <mcrha redhat com>
Date: Tue Feb 9 10:57:55 2021 +0100
Add an alternative shortcut to show the WebKit inspector
The Ctrl+Shift+I clashes with File->New->Assigned Task, which makes
it complicated to show the inspector. The Ctrl+Shift+D can be used
as an alternative. It seems to be an alternative for the gtk+
inspector too.
src/modules/webkit-inspector/evolution-webkit-inspector.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/modules/webkit-inspector/evolution-webkit-inspector.c
b/src/modules/webkit-inspector/evolution-webkit-inspector.c
index 5b0b9ca7ba..dfe01b9b20 100644
--- a/src/modules/webkit-inspector/evolution-webkit-inspector.c
+++ b/src/modules/webkit-inspector/evolution-webkit-inspector.c
@@ -31,13 +31,14 @@
(G_TYPE_CHECK_INSTANCE_CAST \
((obj), E_TYPE_WEBKIT_INSPECTOR, EWebKitInspector))
-/* <Control>+<Shift>+I */
+/* <Control>+<Shift>+I or <Control>+<Shift>+D */
#define WEBKIT_INSPECTOR_MOD (GDK_CONTROL_MASK | GDK_SHIFT_MASK)
-#define WEBKIT_INSPECTOR_KEY (GDK_KEY_I)
+#define WEBKIT_INSPECTOR_KEY1 (GDK_KEY_I)
+#define WEBKIT_INSPECTOR_KEY2 (GDK_KEY_D)
#define WEBKIT_INSPECTOR_SHORTCUT_SHOW(event) \
((((event)->state & WEBKIT_INSPECTOR_MOD) == WEBKIT_INSPECTOR_MOD) && \
- ((event)->keyval == WEBKIT_INSPECTOR_KEY))
+ (((event)->keyval == WEBKIT_INSPECTOR_KEY1) || ((event)->keyval == WEBKIT_INSPECTOR_KEY2)))
typedef struct _EWebKitInspector EWebKitInspector;
typedef struct _EWebKitInspectorClass EWebKitInspectorClass;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]