+ elif self.mode.name == 'control_pw_type' and key == '\n':
+ if len(self.input_) != 1:
+ self.log_msg('@ entered non-single-char, therefore aborted')
+ self.switch_mode('admin')
+ self.input_ = ""
+ else:
+ self.tile_control_char = self.input_
+ self.input_ = ""
+ self.switch_mode('control_pw_pw')
+ elif self.mode.name == 'control_tile_type' and key == '\n':
+ if len(self.input_) != 1:
+ self.log_msg('@ entered non-single-char, therefore aborted')
+ self.switch_mode('admin')
+ self.input_ = ""
+ else:
+ self.tile_control_char = self.input_
+ self.input_ = ""
+ self.switch_mode('control_tile_draw')