My notebooks contain only text-based cells and no code. I use InputAliases quite a bit to save time. Typing the escape key before and after to trigger the InputAliases is not very efficient for me.
I would like to build a NotebookEventAction that triggers when I type "s" and "/" successively. This will work for me as it is rare that I would ever type these keys successively in my text-based notebooks.
I have successfully built the action to trigger when I type the "s" as shown below. Works great.
SetOptions[SelectedNotebook[],
NotebookEventActions -> {{"KeyDown", "s"} :>
KeyBindings`MySpecial[]}];
KeyBindings`MySpecial[] := Module[{},
SelectionMove[InputNotebook[], All, Word];
NotebookApply[InputNotebook[],
"\[AliasDelimiter]\[SelectionPlaceholder]\[AliasDelimiter]"]];
However, I would like it to only trigger when I type "s" and then "/" in succession. Any ideas?