diff --git a/editions/tw5.com/tiddlers/$__key-test.tid b/editions/tw5.com/tiddlers/$__key-test.tid deleted file mode 100644 index 2504c9321..000000000 --- a/editions/tw5.com/tiddlers/$__key-test.tid +++ /dev/null @@ -1,4 +0,0 @@ -created: 20210525102327864 -modified: 20210525102327884 -title: $:/key-test -type: text/vnd.tiddlywiki \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/$__key-test_action.tid b/editions/tw5.com/tiddlers/$__key-test_action.tid deleted file mode 100644 index 79a726908..000000000 --- a/editions/tw5.com/tiddlers/$__key-test_action.tid +++ /dev/null @@ -1,11 +0,0 @@ -created: 20210525102659716 -modified: 20210525102701077 -title: $:/key-test/action -type: text/vnd.tiddlywiki - -<$vars tv-wikilinks="no"> - -* event-key: -* event-code: -* modifier: - \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/Key Codes (Example 1).tid b/editions/tw5.com/tiddlers/Key Codes (Example 1).tid deleted file mode 100644 index 3abe14699..000000000 --- a/editions/tw5.com/tiddlers/Key Codes (Example 1).tid +++ /dev/null @@ -1,66 +0,0 @@ -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={{{ [enlistjoin[ ]] }}} actions=<> > - <$edit-text tiddler=<> placeholder="- Click here. Try keys from list below -" tag=input focus /> - <-- - -!! Keys to be used - -
<$vars tv-wikilinks="no"><>
- -All possible keys can be found at: [[Keyboard Codes]] - -! Example Code - -<> \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/Key Codes (Example).tid b/editions/tw5.com/tiddlers/Key Codes (Example).tid deleted file mode 100644 index 6f50863b2..000000000 --- a/editions/tw5.com/tiddlers/Key Codes (Example).tid +++ /dev/null @@ -1,43 +0,0 @@ -created: 20210427130002905 -modified: 20210525130748774 -tags: KeyboardWidget -title: Key Codes (Example) -type: text/vnd.tiddlywiki - -\define key-test() $:/key-test - -\import [[Keyboard Codes (Macros)]] - -\define keys() -1 2 3 -shift+1 shift+2 shift+3 -a s d -f1 f2 f3 -\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={{{ [enlistjoin[ ]] }}} actions=<> > - <$edit-text tiddler=<> placeholder="- Click here to try keys -" tag=input /> - <-- - - -!! Keys to be tested - -<$list filter="[enlist]"><>, - ------ - -All usable keys can be found at: [[Keyboard Codes]] - -A more advanced example can be found at: [[Key Codes (Example 1)]] - -! Code - -<> \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/Keyboard Codes (Macros).tid b/editions/tw5.com/tiddlers/Keyboard Codes (Macros).tid deleted file mode 100644 index 4a652db25..000000000 --- a/editions/tw5.com/tiddlers/Keyboard Codes (Macros).tid +++ /dev/null @@ -1,50 +0,0 @@ -created: 20210429084127864 -modified: 20210525130830934 -tags: -title: Keyboard Codes (Macros) -type: text/vnd.tiddlywiki - -\define key-test-prefix() $:/key-test - -\define codeState() $:/state/code/$(currentTiddler)$ - -\define getText() -<$vars tv-wikilinks="no"> - -* event-key: ''$(event-key)$'' -* event-code: ''$(event-code)$'' -* modifier: ''$(modifier)$'' - -\end - -\define pinDetails() - <$action-setfield $tiddler=<> text="open"/> -\end - -\define unpinDetails() - <$action-deletetiddler $tiddler=<> /> -\end - -\define toggleDetails(text) -<$list filter="[!has[title]]" variable="ignore"> - <$button class="tc-btn-invisible" actions=<> >$text$ {{$:/core/images/unfold-button}} - -<$list filter="[has[title]]" variable="ignore"> - <$button class="tc-btn-invisible" actions=<> >$text$ {{$:/core/images/fold-button}} - -\end - -\define actionKey() -<$action-setfield $tiddler="$:/key-test/action" text=<> /> -\end - -\define showCode() - -''<>'' - -<$list filter="[has[title]]" variable=ignore> -
<$view />
- -\end - -
<$view />
\ No newline at end of file diff --git a/editions/tw5.com/tiddlers/Keyboard Codes.tid b/editions/tw5.com/tiddlers/Keyboard Codes.tid index 00e746d39..2f8073983 100644 --- a/editions/tw5.com/tiddlers/Keyboard Codes.tid +++ b/editions/tw5.com/tiddlers/Keyboard Codes.tid @@ -4,7 +4,7 @@ tags: KeyboardWidget title: Keyboard Codes type: text/vnd.tiddlywiki -! All Key Codes known by the KeyboardWidget +This is a list of all the key codes supported by the KeyboardWidget: cancel, help, backspace, tab, clear, return, enter, pause, escape, space, page_up, page_down, end, home, left, up, right, down, printscreen, insert, delete @@ -25,7 +25,3 @@ type: text/vnd.tiddlywiki semicolon, equals, comma, dash, period, slash, backquote, openbracket, backslash, closebracket, quote shift, ctrl, alt, meta - -! Examples - -<> \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/widgets/KeyboardWidget.tid b/editions/tw5.com/tiddlers/widgets/KeyboardWidget.tid index bf172952d..94c53d788 100644 --- a/editions/tw5.com/tiddlers/widgets/KeyboardWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/KeyboardWidget.tid @@ -1,6 +1,5 @@ caption: keyboard created: 20140302192136805 -list: [[Keyboard Codes]] [[Key Codes (Example)]] [[Key Codes (Example 1)]] [[Possible Keys (Example 2)]] modified: 20210612101618855 tags: Widgets title: KeyboardWidget