def execute(self, key: int, model: Model): right = LateralDirection.RIGHT if model.at_field_end(right): model.move( right, model.get_padding_len() + len(model.get_neighbor_field(right))) else: model.move_field_end(right)
def execute(self, key: int, model: Model): left = LateralDirection.LEFT if model.at_field_end(left): model.move(left, model.get_neighbor_column_width(left)) else: model.move_field_end(left)