(self, evt, _old)
return _old(self, evt)
Add shortcuts on Anki 2.0.x
Add shortcuts on Anki 2.0.x
Add shortcuts on Anki 2 . 0 . x
def _newKeyHandler(self, evt, _old):
    """Add shortcuts on Anki 2.0.x"""
    if evt.key() == QKeySequence(SHORTCUT_INCREMENTAL)[0]:
        _showHint(incremental=True)
    elif evt.key() == QKeySequence(SHORTCUT_ALL)[0]:
        _showHint()
    return _old(self, evt)
def _newKeyHandler ( self , evt , _old ) : if evt . key ( ) == QKeySequence ( SHORTCUT_INCREMENTAL ) [ 0 ] : _showHint ( incremental = True ) elif evt . key ( ) == QKeySequence ( SHORTCUT_ALL ) [ 0 ] : _showHint ( ) return _old ( self , evt )