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

modifier Variable

 14th April 2022 at 4:28pm

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 modifier variable contains the modifier key(s) held during the drag, click or other event. 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

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

Modifier keys held while clicking the button above: