Changeset 8374


Ignore:
Timestamp:
Feb 6, 2019, 1:50:21 PM (3 months ago)
Author:
hectorgh
Message:

enabling ctrl+f

Location:
zero-center/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zero-center/trunk/fuentes/debian/changelog

    r8311 r8374  
     1zero-center (1:2.22) xenial; urgency=high
     2
     3  * Enabling Ctrl+f shortcut
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Wed, 06 Feb 2019 13:49:52 +0100
     6
    17zero-center (1:2.21) xenial; urgency=high
    28
  • zero-center/trunk/fuentes/install-files/usr/share/zero-center/zero-center.py

    r8311 r8374  
    386386                self.set_css_info()
    387387               
     388                self.window.connect("key-press-event",self.on_key_press_event)
     389               
    388390                self.window.show()
    389391                GObject.threads_init()
     
    391393               
    392394        #def start_gui
     395       
     396       
     397        def on_key_press_event(self,window,event):
     398               
     399                ctrl=(event.state | Gdk.ModifierType.CONTROL_MASK)
     400                if ctrl and event.keyval == Gdk.KEY_f:
     401                        self.search_entry.grab_focus()
     402               
     403        #def on_key_press_event
    393404       
    394405       
Note: See TracChangeset for help on using the changeset viewer.