docs: def _is_shortcut(self, event):
          """
          Checks if the event's key and modifiers make the completion shortcut
          (Ctrl+Space)
  
          :param event: QKeyEvent
  
          :return: bool
          """
          modifier = (QtCore.Qt.MetaModifier if sys.platform == 'darwin' else
                      QtCore.Qt.ControlModifier)
          valid_modifier = int(event.modifiers() & modifier) == modifier
          valid_key = event.key() == self._trigger_key
          return valid_key and valid_modifier