abouttreesummaryrefslogcommitdiff
path: root/res/xml
diff options
context:
space:
mode:
authorJules Aguillon2024-07-06 22:16:37 +0200
committerGitHub2024-07-06 22:16:37 +0200
commitbf3b9c374e1e68b1244da392666b571ab37e51fb (patch)
treeb76bd387664a2b2fc381a2e907795d21016c150d /res/xml
parent6021a0b83c33a495fedde7bbb751ad3e3754bd98 (diff)
downloadunexpected-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 'res/xml')
-rw-r--r--res/xml/bottom_row.xml2
-rw-r--r--res/xml/clipboard_bottom_row.xml10
2 files changed, 11 insertions, 1 deletions
diff --git a/res/xml/bottom_row.xml b/res/xml/bottom_row.xml
index 2f4de2b..600795e 100644
--- a/res/xml/bottom_row.xml
+++ b/res/xml/bottom_row.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<row height="0.95">
- <key width="1.7" key0="ctrl" key1="loc switch_greekmath" key2="loc meta" key4="switch_numeric"/>
+ <key width="1.7" key0="ctrl" key1="loc switch_greekmath" key2="loc meta" key3="loc switch_clipboard" key4="switch_numeric"/>
<key width="1.1" key0="fn" key1="loc alt" key2="loc change_method" key3="switch_emoji" key4="config"/>
<key width="4.4" key0="space" key7="switch_forward" key8="switch_backward" key5="cursor_left" key6="cursor_right" slider="true"/>
<key width="1.1" key0="loc compose" key7="up" key6="right" key5="left" key8="down" key1="loc home" key2="loc page_up" key3="loc end" key4="loc page_down"/>
diff --git a/res/xml/clipboard_bottom_row.xml b/res/xml/clipboard_bottom_row.xml
new file mode 100644
index 0000000..2dfc596
--- /dev/null
+++ b/res/xml/clipboard_bottom_row.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- The bottom row used in the clipboard history pane. -->
+<keyboard bottom_row="false">
+ <row height="0.95">
+ <key key0="switch_back_clipboard"/>
+ <key width="3" key0="space" key5="cursor_left" key6="cursor_right" slider="true"/>
+ <key key0="backspace" key2="delete"/>
+ <key key0="enter" key2="action"/>
+ </row>
+</keyboard>