From 6d3dfd0c5a303e64937483fae04ecdbc35dc8636 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 21 Sep 2024 21:53:53 +0200 Subject: [PATCH] Add 'playpause' key Sends the KEYCODE_MEDIA_PLAY_PAUSE keyevent. --- srcs/juloo.keyboard2/KeyValue.java | 1 + 1 file changed, 1 insertion(+) diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 2a329df..6c2a8a4 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -502,6 +502,7 @@ public final class KeyValue implements Comparable case "f12": return keyeventKey("F12", KeyEvent.KEYCODE_F12, FLAG_SMALLER_FONT); case "tab": return keyeventKey(0xE00F, KeyEvent.KEYCODE_TAB, FLAG_SMALLER_FONT); case "menu": return keyeventKey("Menu", KeyEvent.KEYCODE_MENU, FLAG_SMALLER_FONT); + case "playpause": return keyeventKey("Play", KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE, FLAG_SMALLER_FONT); /* Spaces */ case "\\t": return charKey("\\t", '\t', 0); // Send the tab character