virtualkeyboard: Add options to skip releasing pressed keys on close and to skip sharing key states (#11214)
This commit is contained in:
parent
6491bb4fb7
commit
2be309de1d
23 changed files with 416 additions and 137 deletions
|
|
@ -225,6 +225,9 @@ int main(int argc, char** argv, char** envp) {
|
|||
NLog::log("{}running plugin test", Colors::YELLOW);
|
||||
EXPECT(testPlugin(), true);
|
||||
|
||||
NLog::log("{}running vkb test from plugin", Colors::YELLOW);
|
||||
EXPECT(testVkb(), true);
|
||||
|
||||
// kill hyprland
|
||||
NLog::log("{}dispatching exit", Colors::YELLOW);
|
||||
getFromSocket("/dispatch exit");
|
||||
|
|
|
|||
|
|
@ -19,3 +19,13 @@ bool testPlugin() {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool testVkb() {
|
||||
const auto RESPONSE = getFromSocket("/dispatch plugin:test:vkb");
|
||||
|
||||
if (RESPONSE != "ok") {
|
||||
NLog::log("{}Vkb tests failed, tests returned:\n{}{}", Colors::RED, Colors::RESET, RESPONSE);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#pragma once
|
||||
|
||||
bool testPlugin();
|
||||
bool testPlugin();
|
||||
bool testVkb();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue