Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The EventHandler documentation, More Information section, lists 5 mouse events:

"MouseClicked" "MouseDown" "MouseDragged" "MouseMoved" "MouseUp"

There is at least one other mouse event that can be used that is not listed in this documentation: "MouseEntered"

How can I find out all the possible arguments that can be used as events for EventHandler?


Also in this answer we learn of an undocumented option HandleShiftReturn which works as a "name" with MenuCommand. From the documentation:

{"MenuCommand","name"} menu command with specified name chosen

How do we find out all the possible "names"?

Edit #2 19th June

I got a reply from tech support. They state that "MouseEntered" and "MouseExited" in the GUI Kit are different from the ones in EventHandler and the ones in EventHandler are not yet ready for public use hence not documented. I didn't get an answer to my request for a full list of events for EventHandler (that are public).

Edit #3 30th June

Contacted tech support again after this question. Tech support advise that there is no (documented) way to use the shift, option, control, and function keys with EventHandler. Further they said there is no way to use key combinations with EventHandler. Still no closer to getting a complete list of events.

share|improve this question
How did you find "MouseEntered"? – Dr. belisarius May 30 '12 at 3:37
It was in the interactive balance sheet CDF example that Wolfram released. – Mike Honeychurch May 30 '12 at 4:10
There is also "MouseExited" (somewhere in MathematicaNavigator.nb) – kglr May 30 '12 at 10:13
Now you can also look at the autocomplete list when you write CurrentValue[" and some starting letter – Rojo Feb 19 '15 at 2:38

I haven't looked deeper into this but have you tried all the events which you can find in the documentation of GUIKit?

Especially here: GUIKit/ref/GUIInformation

The list at the bottom contains at least all events you have mentioned:

{"Action", "ActionPerformed", "Ancestor", "AncestorAdded", 
"AncestorMoved", "AncestorRemoved", "AncestorResized", 
"CaretPositionChanged", "Change", "Component", "ComponentAdded",
"ComponentHidden", "ComponentMoved", "ComponentRemoved",
"ComponentResized", "ComponentShown", "Container", "Focus",
"FocusGained", "FocusLost", "Hierarchy", "HierarchyBounds",
"HierarchyChanged", "InputMethod", "InputMethodTextChanged", "Item", 
"ItemStateChanged", "Key", "KeyPressed", "KeyReleased", "KeyTyped", 
"Mouse", "MouseClicked", "MouseDragged", "MouseEntered", 
"MouseExited", "MouseMotion", "MouseMoved", "MousePressed", 
"MouseReleased", "MouseWheel", "MouseWheelMoved", "PropertyChange", 
"StateChanged", "VetoableChange"}
share|improve this answer
I hadn't thought of this. – Mike Honeychurch May 30 '12 at 23:25
@MikeHoneychurch Any positive results while testing these? – Kuba Mar 23 '14 at 9:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.