abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2
diff options
context:
space:
mode:
authorJules Aguillon2024-12-31 10:42:23 +0100
committerJules Aguillon2024-12-31 10:42:23 +0100
commit568b5a99f6216578b5d7cf594aafe407366daced (patch)
tree4919455eb7943210472241523880db26d3d92f4d /srcs/juloo.keyboard2
parent12d9e5eaf81f13b9621645b3bf552238b6c73d72 (diff)
downloadunexpected-keyboard-568b5a99f6216578b5d7cf594aafe407366daced.tar.gz
unexpected-keyboard-568b5a99f6216578b5d7cf594aafe407366daced.zip
Add preferred position for undo/cut/copy/paste
These keys are placed on the downward direction on the z/x/c/v keys when they are enabled in the settings.
Diffstat (limited to 'srcs/juloo.keyboard2')
-rw-r--r--srcs/juloo.keyboard2/prefs/ExtraKeysPreference.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/prefs/ExtraKeysPreference.java b/srcs/juloo.keyboard2/prefs/ExtraKeysPreference.java
index 0d0b3dc..08260aa 100644
--- a/srcs/juloo.keyboard2/prefs/ExtraKeysPreference.java
+++ b/srcs/juloo.keyboard2/prefs/ExtraKeysPreference.java
@@ -228,6 +228,40 @@ public class ExtraKeysPreference extends PreferenceCategory
{
switch (key_name)
{
+ case "cut":
+ return new KeyboardData.PreferredPos(KeyValue.getKeyByName("x"),
+ new KeyboardData.KeyPos[]{
+ new KeyboardData.KeyPos(2, 2, 8),
+ new KeyboardData.KeyPos(2, -1, 8),
+ new KeyboardData.KeyPos(-1, -1, 8),
+ });
+ case "copy":
+ return new KeyboardData.PreferredPos(KeyValue.getKeyByName("c"),
+ new KeyboardData.KeyPos[]{
+ new KeyboardData.KeyPos(2, 3, 8),
+ new KeyboardData.KeyPos(2, -1, 8),
+ new KeyboardData.KeyPos(-1, -1, 8),
+ });
+ case "paste":
+ return new KeyboardData.PreferredPos(KeyValue.getKeyByName("v"),
+ new KeyboardData.KeyPos[]{
+ new KeyboardData.KeyPos(2, 4, 8),
+ new KeyboardData.KeyPos(2, -1, 8),
+ new KeyboardData.KeyPos(-1, -1, 8),
+ });
+ case "undo":
+ return new KeyboardData.PreferredPos(KeyValue.getKeyByName("z"),
+ new KeyboardData.KeyPos[]{
+ new KeyboardData.KeyPos(2, 1, 8),
+ new KeyboardData.KeyPos(2, -1, 8),
+ new KeyboardData.KeyPos(-1, -1, 8),
+ });
+ case "redo":
+ return new KeyboardData.PreferredPos(KeyValue.getKeyByName("y"),
+ new KeyboardData.KeyPos[]{
+ new KeyboardData.KeyPos(0, -1, 8),
+ new KeyboardData.KeyPos(-1, -1, 8),
+ });
case "f11_placeholder":
return new KeyboardData.PreferredPos(KeyValue.getKeyByName("9"),
new KeyboardData.KeyPos[]{