2020-11-23 17:07:41 +00:00
created: 20201123120203415
2022-04-15 12:46:09 +00:00
modified: 20220414162815231
2018-03-14 17:52:13 +00:00
tags: Variables [[Core Variables]]
title: modifier Variable
type: text/vnd.tiddlywiki
2022-04-15 12:46:09 +00:00
Within the ''action'' string of the DroppableWidget, the ''startactions'' and ''endactions'' of the DraggableWidget, the ''action'' string of the ButtonWidget and the ''action'' string of the LinkCatcherWidget and the EventCatcherWidget, the <<.def modifier>> [[variable|Variables]] contains the modifier key(s) held during the drag, click or other event.
2020-11-24 21:19:37 +00:00
Possible key combinations are listed in the table below.
2018-03-14 17:52:13 +00:00
The variable contains a string that identifies the keys:
|Modifier Key |Variable Content |h
2020-11-08 10:15:29 +00:00
|meta |meta |
2018-03-14 17:52:13 +00:00
|ctrl |ctrl |
2020-10-23 15:23:54 +00:00
|alt |alt |
2018-03-14 17:52:13 +00:00
|shift |shift |
2020-11-08 10:15:29 +00:00
|meta+shift |meta-shift |
|meta+ctrl |meta-ctrl |
|meta+alt |meta-alt |
2018-03-14 17:52:13 +00:00
|ctrl+shift |ctrl-shift |
2020-10-23 15:23:54 +00:00
|alt+shift |alt-shift |
|ctrl+alt |ctrl-alt |
2020-11-08 10:15:29 +00:00
|meta+ctrl+shift |meta-ctrl-shift |
|meta+ctrl+alt |meta-ctrl-alt |
|meta+alt+shift |meta-alt-shift |
2020-10-23 15:23:54 +00:00
|ctrl+alt+shift |ctrl-alt-shift |
2020-11-08 10:15:29 +00:00
|meta+ctrl+alt+shift |meta-ctrl-alt-shift |
2020-10-23 15:23:54 +00:00
|no modifier (normal click / drag) |normal |
2020-11-08 11:46:13 +00:00
<<.tip """Some operating systems may intercept the ''meta'' key so it is never detected""">>
<$button actions="""<$action-setfield $tiddler="$:/temp/test-modifier-keys" text=<<modifier>>/>""">Test modifier keys here</$button>
!!! Modifier keys held while clicking the button above:
{{$:/temp/test-modifier-keys}}