permissions: add permission management for keyboards (#10367)

This commit is contained in:
Vaxry 2025-05-18 18:13:20 +01:00 committed by GitHub
parent 44cb8f769e
commit 158c0f2911
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 48 additions and 12 deletions

View file

@ -2900,6 +2900,8 @@ std::optional<std::string> CConfigManager::handlePermission(const std::string& c
type = PERMISSION_TYPE_SCREENCOPY;
else if (data[1] == "plugin")
type = PERMISSION_TYPE_PLUGIN;
else if (data[1] == "keyboard" || data[1] == "keeb")
type = PERMISSION_TYPE_KEYBOARD;
if (data[2] == "ask")
mode = PERMISSION_RULE_ALLOW_MODE_ASK;