Skip to content

Commit

Permalink
add shortcut to open shortcuts dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
amit9838 committed May 8, 2024
1 parent 9e6c4e3 commit 9dc350c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mousam.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

gi.require_version("Gtk", "4.0")
gi.require_version("Adw", "1")
from gi.repository import Gtk, Adw, Gio
from gi.repository import Gtk, Adw, Gio,Gdk,GLib
from gettext import gettext as _, pgettext as C_


Expand Down Expand Up @@ -67,7 +67,7 @@ def __init__(self, *args, **kwargs):
self.header.pack_end(self.hamburger)

# Create a menu button
self.location_button = Gtk.Button(label=_("Refresh"))
self.location_button = Gtk.Button(label=_("Location"))
self.header.pack_end(self.location_button)
self.location_button.set_icon_name("find-location-symbolic")
self.location_button.connect("clicked", self._on_locations_clicked)
Expand Down Expand Up @@ -384,3 +384,5 @@ def on_key_press(self, key_controller, keyval, keycode, state,*args):
GLib.idle_add(self._on_locations_clicked)
if keyval == Gdk.KEY_comma:
GLib.idle_add(self._on_preferences_clicked)
if keyval == Gdk.KEY_question:
GLib.idle_add(self._show_shortcuts_dialog)

0 comments on commit 9dc350c

Please sign in to comment.