Maximum time, in milliseconds, between consecutive characters for them to be considered part of the same shortcut sequence.
A value of 0 is the same as infinity: any consecutive character will be candidate for an inline shortcut, regardless of the interval between this character and the previous one.
A value of 750 will indicate that the maximum interval between two characters to be considered part of the same inline shortcut sequence is 3/4 of a second.
This is useful to enter "+-" as a sequence of two characters, while also supporting the "±" shortcut with the same sequence.
The first result can be entered by pausing slightly between the first and second character if this option is set to a value of 250 or so.
Note that some operations, such as clicking to change the selection, or losing the focus on the mathfield, will automatically timeout the shortcuts.
An inline shortcut can be specified as a simple string or as an object literal with additional options:
When using a string, the shortcut applies regardless of the characters surrounding it.
When using an object literal the
value
key is required an indicate the shortcut substitution.The
"after"
key, if present, indicate in what context (preceding characters) the shortcut will apply. One or more values can be specified, separated by a '|' character. If any of the values match, the shortcut is applicable.Possible values are:
"space"
\quad
"nothing"
"surd"
"frac"
"function"
\sin
orf
"letter"
x
orn
"digit"
0
through9
"binop"
+
"relop"
=
"punct"
,
"array"
"openfence"
(
"closefence"
}
"text"