From 7af579a1bc267413e113b73e29cbdcc981d00470 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 29 Jan 2022 20:03:17 +0100 Subject: [PATCH] Fn+Tab to send the tab character --- srcs/juloo.keyboard2/KeyModifier.java | 1 + srcs/juloo.keyboard2/KeyValue.java | 1 + 2 files changed, 2 insertions(+) diff --git a/srcs/juloo.keyboard2/KeyModifier.java b/srcs/juloo.keyboard2/KeyModifier.java index 4d8d9c5..0837434 100644 --- a/srcs/juloo.keyboard2/KeyModifier.java +++ b/srcs/juloo.keyboard2/KeyModifier.java @@ -193,6 +193,7 @@ class KeyModifier case "$": name = "€"; break; case "#": name = "£"; break; case "*": name = "°"; break; + case "tab": name = "\\t"; break; default: return k; } return KeyValue.getKeyByName(name); diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 5dfd89a..7addcb2 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -248,6 +248,7 @@ class KeyValue addEventKey("f10", "F10", KeyEvent.KEYCODE_F10); addEventKey("tab", "↹", KeyEvent.KEYCODE_TAB); + addKey("\\t", "\\t", '\t', EVENT_NONE, 0); // Send the tab character addKey("space", " ", ' ', KeyEvent.KEYCODE_SPACE, 0); } }