mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 00:29:49 +01:00
escape json strings in hyprctl binds
This commit is contained in:
parent
4ec034ad49
commit
b24f066c47
1 changed files with 2 additions and 2 deletions
|
@ -503,8 +503,8 @@ std::string bindsRequest(HyprCtl::eHyprCtlOutputFormat format) {
|
|||
"dispatcher": "%s",
|
||||
"arg": "%s"
|
||||
},)#",
|
||||
kb.locked ? "true" : "false", kb.mouse ? "true" : "false", kb.release ? "true" : "false", kb.repeat ? "true" : "false", kb.modmask, kb.submap.c_str(),
|
||||
kb.key.c_str(), kb.keycode, kb.handler.c_str(), kb.arg.c_str());
|
||||
kb.locked ? "true" : "false", kb.mouse ? "true" : "false", kb.release ? "true" : "false", kb.repeat ? "true" : "false", kb.modmask,
|
||||
escapeJSONStrings(kb.submap).c_str(), escapeJSONStrings(kb.key).c_str(), kb.keycode, escapeJSONStrings(kb.handler).c_str(), escapeJSONStrings(kb.arg).c_str());
|
||||
}
|
||||
ret.pop_back();
|
||||
ret += "]";
|
||||
|
|
Loading…
Reference in a new issue