(self, signal)
return True
Handle keyboard input signals and clipboard paste.
Handle keyboard input signals and clipboard paste.
Handle keyboard input signals and clipboard paste .
def check_input(self, signal):
        """Handle keyboard input signals and clipboard paste."""
        if signal.event_type == signals.KEYB_DOWN:
            # params is e-ASCII/unicode character sequence, scancode, modifier
            self._key_down(*signal.params)
        elif signal.event_type == signals.KEYB_UP:
            self._key_up(*signal.params)
        elif signal.event_type == signals.STREAM_CHAR:
            # params is a unicode sequence
            self._stream_chars(*signal.params)
        elif signal.event_type == signals.STREAM_CLOSED:
            self._close_input()
        elif signal.event_type == signals.CLIP_PASTE:
            self._stream_chars(*signal.params)
        else:
            return False
        return True
def check_input ( self , signal ) : if signal . event_type == signals . KEYB_DOWN : # params is e-ASCII/unicode character sequence, scancode, modifier self . _key_down ( * signal . params ) elif signal . event_type == signals . KEYB_UP : self . _key_up ( * signal . params ) elif signal . event_type == signals . STREAM_CHAR : # params is a unicode sequence self . _stream_chars ( * signal . params ) elif signal . event_type == signals . STREAM_CLOSED : self . _close_input ( ) elif signal . event_type == signals . CLIP_PASTE : self . _stream_chars ( * signal . params ) else : return False return True