(self, signal)
return False
Handle trappable interrupts (after BASIC events).
Handle trappable interrupts (after BASIC events).
Handle trappable interrupts ( after BASIC events ) .
def _handle_trappable_interrupts(self, signal):
        """Handle trappable interrupts (after BASIC events)."""
        # handle special key combinations
        if signal.event_type == signals.KEYB_DOWN:
            c, scan, mod = signal.params
            if (scan == scancode.DELETE and scancode.CTRL in mod and scancode.ALT in mod):
                # ctrl-alt-del: if not captured by the OS, reset the emulator
                # meaning exit and delete state. This is useful on android.
                raise error.Reset()
            elif scan in (scancode.BREAK, scancode.SCROLLOCK) and scancode.CTRL in mod:
                raise error.Break()
            # pause key handling
            # to ensure this key remains trappable
            elif (scan == scancode.BREAK or
                    (scan == scancode.NUMLOCK and scancode.CTRL in mod)):
                self._pause = True
                return True
        return False
def _handle_trappable_interrupts ( self , signal ) : # handle special key combinations if signal . event_type == signals . KEYB_DOWN : c , scan , mod = signal . params if ( scan == scancode . DELETE and scancode . CTRL in mod and scancode . ALT in mod ) : # ctrl-alt-del: if not captured by the OS, reset the emulator # meaning exit and delete state. This is useful on android. raise error . Reset ( ) elif scan in ( scancode . BREAK , scancode . SCROLLOCK ) and scancode . CTRL in mod : raise error . Break ( ) # pause key handling # to ensure this key remains trappable elif ( scan == scancode . BREAK or ( scan == scancode . NUMLOCK and scancode . CTRL in mod ) ) : self . _pause = True return True return False