abouttreesummaryrefslogcommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJules Aguillon2024-12-08 11:41:50 +0100
committerJules Aguillon2024-12-08 11:41:50 +0100
commit2060e6ab07ea1b16b368e2bab2423cfa35fac760 (patch)
tree64205f49d7f2d466614e8c85170f4f5c0a9ac031 /doc
parentb3d28a65d1a98a0e92486b34db28985b34bdbaf4 (diff)
downloadunexpected-keyboard-2060e6ab07ea1b16b368e2bab2423cfa35fac760.tar.gz
unexpected-keyboard-2060e6ab07ea1b16b368e2bab2423cfa35fac760.zip
Add :keyevent key syntax
Allow to add keyevent keys to the keyboard. For example to add a Play/Pause button: :keyevent symbol='⏯' flags='small':85
Diffstat (limited to 'doc')
-rw-r--r--doc/Possible-key-values.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/Possible-key-values.md b/doc/Possible-key-values.md
index fbac203..5563078 100644
--- a/doc/Possible-key-values.md
+++ b/doc/Possible-key-values.md
@@ -189,3 +189,11 @@ keys.
For example:
- `:char symbol='љ':q`, which is used to implement `ctrl` shortcuts in cyrillic
layouts.
+
+### Kind `keyevent`
+
+Defines a key that sends an Android [key event](https://developer.android.com/reference/android/view/KeyEvent).
+`<payload>` is the key event number.
+
+For example:
+- `:keyevent symbol='⏯' flags='small':85`