From d913b116cd2ffca0f9984731ddcaedc9b0df1404 Mon Sep 17 00:00:00 2001 From: Martin Gerhardy Date: Mon, 2 May 2022 18:14:48 +0200 Subject: [PATCH] UTIL: added missing 'release-button' commands for the unittest --- src/modules/util/tests/KeybindingHandlerTest.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/util/tests/KeybindingHandlerTest.cpp b/src/modules/util/tests/KeybindingHandlerTest.cpp index a57b709b3..857cf3289 100644 --- a/src/modules/util/tests/KeybindingHandlerTest.cpp +++ b/src/modules/util/tests/KeybindingHandlerTest.cpp @@ -58,8 +58,11 @@ protected: _xyz = _ctrlshiftmodcommand = _somecommand = _altmodcommand = _allmodscommand = _foo = _doubleLeftClick = false; command::Command::shutdown(); command::Command::registerCommand("+bar", [] (const command::CmdArgs& args) {}); + command::Command::registerCommand("-bar", [] (const command::CmdArgs& args) {}); command::Command::registerCommand("+foo", [this] (const command::CmdArgs& args) {this->_foo = true;}); + command::Command::registerCommand("-foo", [this] (const command::CmdArgs& args) {this->_foo = false;}); command::Command::registerCommand("+xyz", [this] (const command::CmdArgs& args) {this->_xyz = true;}); + command::Command::registerCommand("-xyz", [this] (const command::CmdArgs& args) {this->_xyz = false;}); command::Command::registerCommand("somecommand", [this] (const command::CmdArgs& args) {this->_somecommand = true;}); command::Command::registerCommand("altmodcommand", [this] (const command::CmdArgs& args) {this->_altmodcommand = true;}); command::Command::registerCommand("allmodscommand", [this] (const command::CmdArgs& args) {this->_allmodscommand = true;});