mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 16:50:04 +01:00
unbind: add unbind all
This commit is contained in:
parent
a01d20cfe8
commit
0fea173fc8
1 changed files with 7 additions and 0 deletions
|
|
@ -2578,6 +2578,13 @@ std::optional<std::string> CConfigManager::handleBind(const std::string& command
|
|||
std::optional<std::string> CConfigManager::handleUnbind(const std::string& command, const std::string& value) {
|
||||
const auto ARGS = CVarList(value);
|
||||
|
||||
if (ARGS.size() == 1 && ARGS[0] == "all") {
|
||||
g_pKeybindManager->m_keybinds.clear();
|
||||
g_pKeybindManager->m_activeKeybinds.clear();
|
||||
g_pKeybindManager->m_lastLongPressKeybind.reset();
|
||||
return {};
|
||||
}
|
||||
|
||||
const auto MOD = g_pKeybindManager->stringToModMask(ARGS[0]);
|
||||
|
||||
const auto KEY = parseKey(ARGS[1]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue