$Inspector
is a global variable which gives a function to apply when the inspector is invoked from an interrupt menu.
Details

- The argument supplied is the number of nested invocations of the inspector that are in use.
- The default value of $Inspector is a function that executes Dialog[].
Introduced in 1991
(2.0)