code: def fixed_shortcut(keystr, parent, action):
      
      sc = QShortcut(QKeySequence(keystr), parent, action)
      sc.setContext(Qt.WidgetWithChildrenShortcut)
      return sc
docs: DEPRECATED: This function will be removed in Spyder 4.0
  
      Define a fixed shortcut according to a keysequence string