Single instance
This commit is contained in:
@@ -17,6 +17,8 @@ const char* action_type_token(ActionType type) {
|
||||
return "key";
|
||||
case ActionType::Command:
|
||||
return "command";
|
||||
case ActionType::KeyHold:
|
||||
return "keyhold";
|
||||
case ActionType::Disabled:
|
||||
default:
|
||||
return "disabled";
|
||||
@@ -30,6 +32,9 @@ ActionType action_type_from_token(const std::string& token) {
|
||||
if (token == "command") {
|
||||
return ActionType::Command;
|
||||
}
|
||||
if (token == "keyhold") {
|
||||
return ActionType::KeyHold;
|
||||
}
|
||||
return ActionType::Disabled;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user