Example #1
0
 def set_modifier_mappings(self, mappings):
     KeyboardBase.set_modifier_mappings(self, mappings)
     self.num_lock_modifier = self.modifier_keys.get("Num_Lock")
     log("set_modifier_mappings found 'Num_Lock' with modifier value: %s", self.num_lock_modifier)
     for x in ("ISO_Level3_Shift", "Mode_switch"):
         mod = self.modifier_keys.get(x)
         if mod:
             self.altgr_modifier = mod
             log("set_modifier_mappings found 'AltGr'='%s' with modifier value: %s", x, self.altgr_modifier)
             break
Example #2
0
 def set_modifier_mappings(self, mappings):
     KeyboardBase.set_modifier_mappings(self, mappings)
     self.num_lock_modifier = self.modifier_keys.get("Num_Lock")
     log("set_modifier_mappings found 'Num_Lock' with modifier value: %s", self.num_lock_modifier)
     for x in ("ISO_Level3_Shift", "Mode_switch"):
         mod = self.modifier_keys.get(x)
         if mod:
             self.altgr_modifier = mod
             log("set_modifier_mappings found 'AltGr'='%s' with modifier value: %s", x, self.altgr_modifier)
             break
Example #3
0
 def set_modifier_mappings(self, mappings):
     KeyboardBase.set_modifier_mappings(self, mappings)
     self.meta_modifier = self.modifier_keys.get("Meta_L") or self.modifier_keys.get("Meta_R")
     self.control_modifier = self.modifier_keys.get("Control_L") or self.modifier_keys.get("Control_R")
     self.num_lock_modifier = self.modifier_keys.get("Num_Lock")
     log("set_modifier_mappings(%s) meta=%s, control=%s, numlock=%s", mappings, self.meta_modifier, self.control_modifier, self.num_lock_modifier)
     #find the keysyms and keycodes to use for each key we may translate:
     for orig_keysym in KEYS_TRANSLATION_OPTIONS.keys():
         new_def = self.find_translation(orig_keysym)
         if new_def is not None:
             self.key_translations[orig_keysym] = new_def
     log("set_modifier_mappings(..) swap keys translations=%s", self.key_translations)
Example #4
0
 def set_modifier_mappings(self, mappings):
     KeyboardBase.set_modifier_mappings(self, mappings)
     self.meta_modifier = self.modifier_keys.get("Meta_L") or self.modifier_keys.get("Meta_R")
     self.control_modifier = self.modifier_keys.get("Control_L") or self.modifier_keys.get("Control_R")
     self.num_lock_modifier = self.modifier_keys.get("Num_Lock")
     log("set_modifier_mappings(%s) meta=%s, control=%s, numlock=%s", mappings, self.meta_modifier, self.control_modifier, self.num_lock_modifier)
     #find the keysyms and keycodes to use for each key we may translate:
     for orig_keysym in KEYS_TRANSLATION_OPTIONS.keys():
         new_def = self.find_translation(orig_keysym)
         if new_def is not None:
             self.key_translations[orig_keysym] = new_def
     log("set_modifier_mappings(..) swap keys translations=%s", self.key_translations)
Example #5
0
 def set_modifier_mappings(self, mappings):
     KeyboardBase.set_modifier_mappings(self, mappings)
     self.num_lock_modifier = self.modifier_keys.get("Num_Lock")
     log("set_modifier_mappings found 'Num_Lock' modifier value: %s", self.num_lock_modifier)
Example #6
0
 def set_modifier_mappings(self, mappings):
     KeyboardBase.set_modifier_mappings(self, mappings)
     self.num_lock_modifier = self.modifier_keys.get("Num_Lock")
Example #7
0
 def set_modifier_mappings(self, mappings):
     KeyboardBase.set_modifier_mappings(self, mappings)
     self.num_lock_modifier = self.modifier_keys.get("Num_Lock")