MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / pauseRunningKeySequence

Method pauseRunningKeySequence

QKeyMapper/qkeymapper_worker.cpp:18029–18042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18027}
18028
18029void QKeyMapper_Worker::pauseRunningKeySequence(const QString &originalKey)
18030{
18031 const QStringList pauseTargets = buildKeySequencePauseTargets(originalKey);
18032 for (const QString &pauseTarget : std::as_const(pauseTargets)) {
18033 SendInputTaskController *pauseController = findSendInputTaskController(pauseTarget);
18034 if (pauseController == Q_NULLPTR || pauseController->task_pause_state == Q_NULLPTR) {
18035 continue;
18036 }
18037
18038 if (*pauseController->task_pause_state == KEYSEQUENCE_PAUSE_STATE_NONE) {
18039 *pauseController->task_pause_state = KEYSEQUENCE_PAUSE_STATE_REQUESTED;
18040 }
18041 }
18042}
18043
18044void QKeyMapper_Worker::continueRunningKeySequence(const QString &originalKey)
18045{

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected