src/aoikhotkey/hotkey_manager.py
def _hotkey_find_and_call(
        self, hotkey, hotkey_type, event, propagate=None
    ):
        """
        Find hotkey and call hotkey function.

        :param hotkey: Hotkey's virtual key list.

        :param hotkey_type: Hotkey type.

        :param event: Event object.

        :param propagate: Whether propagate the event.

        :return: A two-item tuple.

        Tuple format is:
        (
            Item 0,     # Whether hotkey is found.
            Item 1:     # Whether propagate the event.
        )
        """
        # Find hotkey info
        hotkey_info = self._hotkey_info_get_by_hotkey(
            hotkey=hotkey, hotkey_type=hotkey_type
        )

        # If hotkey info is not found
        if hotkey_info is None:
            # Return result
            return (False, propagate)

        # If hotkey info is found.

        # Call the hotkey function.
        # Use the call result to decide whether propagate the event.
        propagate = self._hotkey_call(
            hotkey=hotkey,
            hotkey_type=hotkey_type,
            hotkey_info=hotkey_info,
            event=event,
            propagate=propagate,
        )

        # Return result
        return (True, propagate)

        Find hotkey and call hotkey function.

        :param hotkey: Hotkey's virtual key list.

        :param hotkey_type: Hotkey type.

        :param event: Event object.

        :param propagate: Whether propagate the event.

        :return: A two-item tuple.

        Tuple format is:
        (
            Item 0,     # Whether hotkey is found.
            Item 1:     # Whether propagate the event.
        )
        
Find hotkey and call hotkey function.
Find hotkey and call hotkey function .
def _hotkey_find_and_call(
        self, hotkey, hotkey_type, event, propagate=None
    ):
        hotkey_info = self._hotkey_info_get_by_hotkey(
            hotkey=hotkey, hotkey_type=hotkey_type
        )
        if hotkey_info is None:
            return (False, propagate)
        propagate = self._hotkey_call(
            hotkey=hotkey,
            hotkey_type=hotkey_type,
            hotkey_info=hotkey_info,
            event=event,
            propagate=propagate,
        )
        return (True, propagate)
def _hotkey_find_and_call ( self , hotkey , hotkey_type , event , propagate = None ) : hotkey_info = self . _hotkey_info_get_by_hotkey ( hotkey = hotkey , hotkey_type = hotkey_type ) if hotkey_info is None : return ( False , propagate ) propagate = self . _hotkey_call ( hotkey = hotkey , hotkey_type = hotkey_type , hotkey_info = hotkey_info , event = event , propagate = propagate , ) return ( True , propagate )
Find hotkey and call hotkey function.
Find hotkey and call hotkey function .
"""
        Find hotkey and call hotkey function.

        :param hotkey: Hotkey's virtual key list.

        :param hotkey_type: Hotkey type.

        :param event: Event object.

        :param propagate: Whether propagate the event.

        :return: A two-item tuple.

        Tuple format is:
        (
            Item 0,     # Whether hotkey is found.
            Item 1:     # Whether propagate the event.
        )
        """ # Find hotkey info # If hotkey info is not found # Return result # If hotkey info is found. # Call the hotkey function. # Use the call result to decide whether propagate the event. # Return result
A two-item tuple.
Tuple format is:
(
Item 0,     # Whether hotkey is found.
Item 1:     # Whether propagate the event.
A two - item tuple . Tuple format is : ( Item 0 # Whether hotkey is found . Item 1 : # Whether propagate the event .
self
hotkey
Hotkey's virtual key list.
Hotkey ' s virtual key list .
hotkey_type
None
event
None
propagate
Whether propagate the event.
Whether propagate the event .