diff options
| author | Jules Aguillon | 2024-07-06 22:16:37 +0200 |
|---|---|---|
| committer | GitHub | 2024-07-06 22:16:37 +0200 |
| commit | bf3b9c374e1e68b1244da392666b571ab37e51fb (patch) | |
| tree | b76bd387664a2b2fc381a2e907795d21016c150d /srcs/juloo.keyboard2/KeyValue.java | |
| parent | 6021a0b83c33a495fedde7bbb751ad3e3754bd98 (diff) | |
| download | unexpected-keyboard-bf3b9c374e1e68b1244da392666b571ab37e51fb.tar.gz unexpected-keyboard-bf3b9c374e1e68b1244da392666b571ab37e51fb.zip | |
Clipboard pane (#681)
This adds the clipboard pane, which allows to save an arbitrary number of
clipboards and to paste them later. The key can be disabled in settings.
Checking the "Recently copied text" checkbox will cause the keyboard to keep a
temporary history of copied text. This history can only contain 3 elements
which expire after 5 minutes.
If this is unchecked, no history is collected.
History entries can be pinned into the persisted list of pins.
Diffstat (limited to 'srcs/juloo.keyboard2/KeyValue.java')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyValue.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 1635bab..31a92f2 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -12,6 +12,8 @@ public final class KeyValue implements Comparable<KeyValue> SWITCH_NUMERIC, SWITCH_EMOJI, SWITCH_BACK_EMOJI, + SWITCH_CLIPBOARD, + SWITCH_BACK_CLIPBOARD, CHANGE_METHOD_PICKER, CHANGE_METHOD_AUTO, ACTION, @@ -460,6 +462,8 @@ public final class KeyValue implements Comparable<KeyValue> case "switch_numeric": return eventKey("123+", Event.SWITCH_NUMERIC, FLAG_SMALLER_FONT); case "switch_emoji": return eventKey(0xE001, Event.SWITCH_EMOJI, FLAG_SMALLER_FONT); case "switch_back_emoji": return eventKey("ABC", Event.SWITCH_BACK_EMOJI, 0); + case "switch_clipboard": return eventKey(0xE017, Event.SWITCH_CLIPBOARD, 0); + case "switch_back_clipboard": return eventKey("ABC", Event.SWITCH_BACK_CLIPBOARD, 0); case "switch_forward": return eventKey(0xE013, Event.SWITCH_FORWARD, FLAG_SMALLER_FONT); case "switch_backward": return eventKey(0xE014, Event.SWITCH_BACKWARD, FLAG_SMALLER_FONT); case "switch_greekmath": return eventKey("πλ∇¬", Event.SWITCH_GREEKMATH, FLAG_SMALLER_FONT); |
