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

Method handleFilterKeysOnMappingStart

QKeyMapper/qkeymapper_worker.cpp:9863–9887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9861}
9862
9863void QKeyMapper_Worker::handleFilterKeysOnMappingStart()
9864{
9865 // Reset restore flag at the start of mapping
9866 s_RestoreFilterKeysState = false;
9867
9868 // Check if we need to enable FilterKeys during mapping
9869 if (QKeyMapper::getEnableSystemFilterKeyChecked()) {
9870 // If FilterKeys is not enabled, enable it and set restore flag
9871 if (!QKeyMapper::isWindowsFilterKeysEnabled()) {
9872 QKeyMapper::setWindowsFilterKeysEnabled(true);
9873 s_RestoreFilterKeysState = true;
9874#ifdef DEBUG_LOGOUT_ON
9875 qDebug() << "[QKeyMapper_Worker::handleFilterKeysOnMappingStart] Enabled FilterKeys for mapping, will restore on stop";
9876#endif
9877 } else {
9878#ifdef DEBUG_LOGOUT_ON
9879 qDebug() << "[QKeyMapper_Worker::handleFilterKeysOnMappingStart] FilterKeys already enabled, no change needed";
9880#endif
9881 }
9882 } else {
9883#ifdef DEBUG_LOGOUT_ON
9884 qDebug() << "[QKeyMapper_Worker::handleFilterKeysOnMappingStart] EnableSystemFilterKey is unchecked, no change needed";
9885#endif
9886 }
9887}
9888
9889void QKeyMapper_Worker::handleFilterKeysOnMappingStop()
9890{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected