adding a new keyword 'on-click-copy' that accepts a bool and copies to clipboard on true'

This commit is contained in:
Skyfrei
2026-03-24 20:12:30 +01:00
parent be2ad4a858
commit fff1495efb
4 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ AModule::AModule(const Json::Value& config, const std::string& name, const std::
std::find_if(eventMap_.cbegin(), eventMap_.cend(), [&config](const auto& eventEntry) {
// True if there is any non-release type event
return eventEntry.first.second != GdkEventType::GDK_BUTTON_RELEASE &&
config[eventEntry.second].isString();
(config[eventEntry.second].isString() || config[eventEntry.second].isBool());
}) != eventMap_.cend();
if (enable_click || hasUserEvents) {