Beispiel #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)
Beispiel #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()