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

Method handleFilterKeysOnMappingStop

QKeyMapper/qkeymapper_worker.cpp:9889–9906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9887}
9888
9889void QKeyMapper_Worker::handleFilterKeysOnMappingStop()
9890{
9891 // Only restore if the flag is set (we enabled FilterKeys and user didn't change it)
9892 if (s_RestoreFilterKeysState && QKeyMapper::isWindowsFilterKeysEnabled()) {
9893 // Disable FilterKeys (restore to original disabled state)
9894 QKeyMapper::setWindowsFilterKeysEnabled(false);
9895#ifdef DEBUG_LOGOUT_ON
9896 qDebug() << "[QKeyMapper_Worker::handleFilterKeysOnMappingStop] Restored FilterKeys to disabled state";
9897#endif
9898 } else {
9899#ifdef DEBUG_LOGOUT_ON
9900 qDebug() << "[QKeyMapper_Worker::handleFilterKeysOnMappingStop] No FilterKeys state restore needed";
9901#endif
9902 }
9903
9904 // Reset restore flag
9905 s_RestoreFilterKeysState = false;
9906}
9907
9908void QKeyMapper_Worker::notifyUserChangedFilterKeys()
9909{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected