Esempio n. 1
0
 def _key_press_event(self, widget, event):
     ''' key press event callback'''
     if event.is_modifier or self.screenshot.show_text_window_flag:
         return
     key = get_keyevent_name(event)
     if key in self.hotkey_map:
         self.hotkey_map[key]()
Esempio n. 2
0
 def _key_press_event(self, widget, event):
     ''' key press event callback'''
     if event.is_modifier or self.screenshot.show_text_window_flag:
         return
     key = get_keyevent_name(event)
     if key in self.hotkey_map:
         self.hotkey_map[key]()
Esempio n. 3
0
 def key_press_confirm_dialog(self, widget, event):
     key_name = get_keyevent_name(event)
     if self.keymap.has_key(key_name):
         self.keymap[key_name]()
         return True
     else:
         return False
Esempio n. 4
0
 def window_key_press_handler(self, widget, event):
     if self.fullscreen_state:
         from dtk.ui.keymap import get_keyevent_name
         if get_keyevent_name(event, True) == 'Escape':
             self.fullscreen_handler(self.control_toolbar.fullscreen_button,
                                     None)
Esempio n. 5
0
 def window_key_press_handler(self, widget, event):
     if self.fullscreen_state:
         from dtk.ui.keymap import get_keyevent_name
         if get_keyevent_name(event, True) == 'Escape':
             self.fullscreen_handler(self.control_toolbar.fullscreen_button, None)