src/aoikhotkey/util/keyboard_winos.py
def hotkey_info_set(self, hotkey_info):
        """
        Set hotkey info. Will be called by hotkey manager.

        :param hotkey_info: Hotkey info.

        :return: None.
        """
        # If backspace count is given by user
        if self._back_count is not None:
            # Do not compute automatically
            return

        # If backspace count is not given by user.

        # Get the hotkey's virtual key tuples
        hotkey_tuple_s = hotkey_info[HOTKEY_INFO_K_HOTKEY_TUPLES]

        # Use the first virtual key tuple
        hotkey_tuple = hotkey_tuple_s[0]

        # Use the hotkey's number of virtual keys to decide the number of
        # backspaces to send. This assumes all virtual keys are printable keys.
        # `-1` is because the event of last key that triggers this hotkey is
        # not propagated so no need to send a backspace to delete it.
        self._back_count = len(hotkey_tuple) - 1

        Set hotkey info. Will be called by hotkey manager.

        :param hotkey_info: Hotkey info.

        :return: None.
        
Set hotkey info. Will be called by hotkey manager.
Set hotkey info . Will be called by hotkey manager .
def hotkey_info_set(self, hotkey_info):
        if self._back_count is not None:
            return
        hotkey_tuple_s = hotkey_info[HOTKEY_INFO_K_HOTKEY_TUPLES]
        hotkey_tuple = hotkey_tuple_s[0]
        self._back_count = len(hotkey_tuple) - 1
def hotkey_info_set ( self , hotkey_info ) : if self . _back_count is not None : return hotkey_tuple_s = hotkey_info [ HOTKEY_INFO_K_HOTKEY_TUPLES ] hotkey_tuple = hotkey_tuple_s [ 0 ] self . _back_count = len ( hotkey_tuple ) - 1
Set hotkey info.
Set hotkey info .
"""
        Set hotkey info. Will be called by hotkey manager.

        :param hotkey_info: Hotkey info.

        :return: None.
        """ # If backspace count is given by user # Do not compute automatically # If backspace count is not given by user. # Get the hotkey's virtual key tuples # Use the first virtual key tuple # Use the hotkey's number of virtual keys to decide the number of # backspaces to send. This assumes all virtual keys are printable keys. # `-1` is because the event of last key that triggers this hotkey is # not propagated so no need to send a backspace to delete it.
None
self
hotkey_info
None