Esempio n. 1
0
 def is_relevant(self, key: int, model: Model):
     return key == self.key_map.value(Key.DELETE) and not model.at_line_end() \
            and model.at_field_end(LateralDirection.RIGHT)
Esempio n. 2
0
 def is_relevant(self, key: int, model: Model):
     return key == self.key_map.value(
         Key.CTRL_RIGHT) and not model.at_line_end()