This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

modifier Variable

23rd November 2020 at 12:02pm
Core Variables Variables

Within the action string of the DroppableWidget, the action string of the ButtonWidget and the action string of the LinkCatcherWidget and the EventCatcherWidget, the modifier variable contains the modifier key(s) held during the drag-process. Possible key combinations are listed in the table below.

The variable contains a string that identifies the keys:

Modifier KeyVariable Content
metameta
ctrlctrl
altalt
shiftshift
meta+shiftmeta-shift
meta+ctrlmeta-ctrl
meta+altmeta-alt
ctrl+shiftctrl-shift
alt+shiftalt-shift
ctrl+altctrl-alt
meta+ctrl+shiftmeta-ctrl-shift
meta+ctrl+altmeta-ctrl-alt
meta+alt+shiftmeta-alt-shift
ctrl+alt+shiftctrl-alt-shift
meta+ctrl+alt+shiftmeta-ctrl-alt-shift
no modifier (normal click / drag)normal

Some operating systems may intercept the meta key so it is never detected

Modifier keys held while clicking the button above: