[gnome-games] collection-view: Add keyboard shortcut for ShortcutsWindow
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] collection-view: Add keyboard shortcut for ShortcutsWindow
- Date: Fri, 1 May 2020 12:16:42 +0000 (UTC)
commit 1f127109e44d09fd7247bc4af7c6ccd76fb7d5e4
Author: Neville <nevilleantony98 gmail com>
Date: Fri May 1 13:21:52 2020 +0530
collection-view: Add keyboard shortcut for ShortcutsWindow
Add Ctrl + ? shortcut for displaying ShortcutsWindow in collection-view.
Fixes #285
src/ui/collection-view.vala | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/src/ui/collection-view.vala b/src/ui/collection-view.vala
index c9be812b..3d30cff4 100644
--- a/src/ui/collection-view.vala
+++ b/src/ui/collection-view.vala
@@ -144,6 +144,15 @@ private class Games.CollectionView : Gtk.Box, UiView {
return true;
}
+ if ((keyval == Gdk.Key.question) &&
+ (event.state & default_modifiers) == (Gdk.ModifierType.CONTROL_MASK |
Gdk.ModifierType.SHIFT_MASK)) {
+
+ var shortcuts_window = new ShortcutsWindow ();
+ shortcuts_window.show_all();
+
+ return true;
+ }
+
if (is_collection_empty)
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]