def _handle_subcommand(self, hotkey, view):
		if keys.is_cancel_key(hotkey['key']):
			self._reset()
			return False

		key = keys.get_key_name(hotkey['key'])
		self.__status_text = Commands().execute(self.__command_group, key, view)

		self._reset()
		return True
Esempio n. 2
0
    def _handle_subcommand(self, hotkey, view):
        if keys.is_cancel_key(hotkey['key']):
            self._reset()
            return False

        key = keys.get_key_name(hotkey['key'])
        self.__status_text = Commands().execute(self.__command_group, key,
                                                view)

        self._reset()
        return True
	def _hotkey2command_group(self, hotkey):
		s = ''
		
		if hotkey['ctrl']:
			s += 'ctrl-'

		if hotkey['shift']:
			s += 'shift-'

		if hotkey['alt']:
			s += 'alt-'

		s += keys.get_key_name(hotkey['key'])

		return s
Esempio n. 4
0
    def _hotkey2command_group(self, hotkey):
        s = ''

        if hotkey['ctrl']:
            s += 'ctrl-'

        if hotkey['shift']:
            s += 'shift-'

        if hotkey['alt']:
            s += 'alt-'

        s += keys.get_key_name(hotkey['key'])

        return s