Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
GlobalShortcutBlock.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include "phosphorshortcuts_export.h"
7
8namespace PhosphorShortcuts {
9
48
51PHOSPHORSHORTCUTS_EXPORT bool canBlockGlobalShortcuts();
52
62PHOSPHORSHORTCUTS_EXPORT bool setGlobalShortcutsBlocked(bool blocked);
63
66PHOSPHORSHORTCUTS_EXPORT bool globalShortcutsBlocked();
67
77PHOSPHORSHORTCUTS_EXPORT bool releaseStrandedGlobalShortcutBlock();
78
79} // namespace PhosphorShortcuts
Definition Factory.h:12
PHOSPHORSHORTCUTS_EXPORT bool canBlockGlobalShortcuts()
Session-wide suspension of global shortcuts, for a chord recorder.
PHOSPHORSHORTCUTS_EXPORT bool releaseStrandedGlobalShortcutBlock()
Resume the global shortcuts whatever this process believes, to clear a block a previous run left behi...
PHOSPHORSHORTCUTS_EXPORT bool globalShortcutsBlocked()
Whether this process currently holds at least one hold taken through setGlobalShortcutsBlocked().
PHOSPHORSHORTCUTS_EXPORT bool setGlobalShortcutsBlocked(bool blocked)
Take (true) or give back (false) one hold on the suspension.