mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 23:34:50 +00:00
66 lines
2.0 KiB
Plaintext
66 lines
2.0 KiB
Plaintext
created: 20210427092418146
|
|
modified: 20210525130708186
|
|
tags: KeyboardWidget
|
|
title: Key Codes (Example 1)
|
|
type: text/vnd.tiddlywiki
|
|
|
|
\define key-test() $:/key-test
|
|
|
|
\import [[Keyboard Codes (Macros)]]
|
|
|
|
\define keys()
|
|
backspace tab clear return enter pause escape space
|
|
page_up page_down end home printscreen insert delete
|
|
|
|
left up right down results in: ArrowLeft ArrowUp ArrowRight ArrowDown
|
|
|
|
0 1 2 3
|
|
shift+0 shift+1 shift+2 shift+3 results in: = ! " with modifierKey: shift
|
|
ctrl+0 ctrl+1 ctrl+2 ctrl+3
|
|
alt+0 alt+1 alt+2 alt+3
|
|
|
|
ctrl+alt+0 ctrl+alt+1 ctrl+alt+2 ctrl+alt+3
|
|
alt+shift+0 alt+shift+1 alt+shift+2 alt+shift+3
|
|
ctrl+shift+0 ctrl+shift+1 ctrl+shift+2 ctrl+shift+3 INFO: ctrl-shift-0 is eaten by windows!!
|
|
ctrl+alt+shift+0 ctrl+alt+shift+1 ctrl+alt+shift+2 ctrl+alt+shift+3
|
|
|
|
a s d
|
|
shift+a shift+s shift+d
|
|
ctrl+a ctrl+s ctrl+d
|
|
alt+a alt+s alt+d
|
|
|
|
ctrl+shift+a ctrl+shift+s ctrl+shift+d
|
|
alt+shift+a alt+shift+s alt+shift+d
|
|
ctrl+alt+a ctrl+alt+s ctrl+alt+d
|
|
ctrl+alt+shift+a ctrl+alt+shift+s ctrl+alt+shift+d
|
|
|
|
numpad0 numpad1 numpad2 numpad3
|
|
|
|
multiply add separator subtract decimal divide
|
|
|
|
f1 f2 f3
|
|
|
|
semicolon equals comma dash period slash backquote openbracket backslash closebracket quote
|
|
\end
|
|
|
|
! Key Codes
|
|
|
|
{{$:/key-test/action}}
|
|
|
|
! Input Area
|
|
|
|
Depending on your OS and browser keyboard settings, some combinations may be "eaten" by the OS, or the browser!
|
|
|
|
--> <$keyboard key={{{ [enlist<keys>join[ ]] }}} actions=<<actionKey>> >
|
|
<$edit-text tiddler=<<key-test>> placeholder="- Click here. Try keys from list below -" tag=input focus />
|
|
</$keyboard> <--
|
|
|
|
!! Keys to be used
|
|
|
|
<pre><code><$vars tv-wikilinks="no"><<keys>></$vars></code></pre>
|
|
|
|
All possible keys can be found at: [[Keyboard Codes]]
|
|
|
|
! Example Code
|
|
|
|
<<showCode>> |