[network/kdeconnect-kde] plugins/mousepad: Add modifier keys as special keys

Albert Vaca Cintora <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 47d52108b98cf29b4baaae4e7bd3f20322a50265 by Albert Vaca Cintora.
Committed on 02/08/2026 at 21:11.
Pushed by albertvaka into branch 'master'.

Add modifier keys as special keys

So we can send them outside of key combinations

M  +4    -4    plugins/mousepad/macosremoteinput.mm
M  +4    -4    plugins/mousepad/waylandremoteinput.cpp
M  +4    -4    plugins/mousepad/windowsremoteinput.cpp
M  +4    -4    plugins/mousepad/x11remoteinput.cpp

https://invent.kde.org/network/kdeconnect-kde/-/commit/47d52108b98cf29b4baaae4e7bd3f20322a50265

diff --git a/plugins/mousepad/macosremoteinput.mm b/plugins/mousepad/macosremoteinput.mm
index 3367cae96..0879055b1 100644
--- a/plugins/mousepad/macosremoteinput.mm
+++ b/plugins/mousepad/macosremoteinput.mm
@@ -31,10 +31,10 @@ int SpecialKeysMap[] = {
     kVK_Escape,         // 14
     0,                  // 15
     0,                  // 16
-    0,                  // 17
-    0,                  // 18
-    0,                  // 19
-    0,                  // 20
+    kVK_Control,        // 17
+    kVK_Option,         // 18
+    kVK_Shift,          // 19
+    kVK_Command,        // 20
     kVK_F1,             // 21
     kVK_F2,             // 22
     kVK_F3,             // 23
diff --git a/plugins/mousepad/waylandremoteinput.cpp b/plugins/mousepad/waylandremoteinput.cpp
index 1f6204bc5..dfbb546ba 100644
--- a/plugins/mousepad/waylandremoteinput.cpp
+++ b/plugins/mousepad/waylandremoteinput.cpp
@@ -42,10 +42,10 @@ int SpecialKeysMap[] = {
     KEY_ESC, // 14
     KEY_SYSRQ, // 15
     KEY_SCROLLLOCK, // 16
-    0, // 17
-    0, // 18
-    0, // 19
-    0, // 20
+    KEY_LEFTCTRL, // 17
+    KEY_LEFTALT, // 18
+    KEY_LEFTSHIFT, // 19
+    KEY_LEFTMETA, // 20
     KEY_F1, // 21
     KEY_F2, // 22
     KEY_F3, // 23
diff --git a/plugins/mousepad/windowsremoteinput.cpp b/plugins/mousepad/windowsremoteinput.cpp
index 7e238e404..a6cc44db5 100644
--- a/plugins/mousepad/windowsremoteinput.cpp
+++ b/plugins/mousepad/windowsremoteinput.cpp
@@ -30,10 +30,10 @@ int SpecialKeysMap[] = {
     VK_ESCAPE, // 14
     VK_SNAPSHOT, // 15
     VK_SCROLL, // 16
-    0, // 17
-    0, // 18
-    0, // 19
-    0, // 20
+    VK_LCONTROL, // 17
+    VK_LMENU, // 18
+    VK_LSHIFT, // 19
+    VK_LWIN, // 20
     VK_F1, // 21
     VK_F2, // 22
     VK_F3, // 23
diff --git a/plugins/mousepad/x11remoteinput.cpp b/plugins/mousepad/x11remoteinput.cpp
index 7e1adecda..6c57ab35c 100644
--- a/plugins/mousepad/x11remoteinput.cpp
+++ b/plugins/mousepad/x11remoteinput.cpp
@@ -42,10 +42,10 @@ int SpecialKeysMap[] = {
     XK_Escape, // 14
     XK_Sys_Req, // 15
     XK_Scroll_Lock, // 16
-    0, // 17
-    0, // 18
-    0, // 19
-    0, // 20
+    XK_Control_L, // 17
+    XK_Alt_L, // 18
+    XK_Shift_L, // 19
+    XK_Super_L, // 20
     XK_F1, // 21
     XK_F2, // 22
     XK_F3, // 23
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.