AI Math Notes includes keyboard shortcuts to help you work more efficiently without reaching for the mouse buttons.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ayushpai/AI-Math-Notes/llms.txt
Use this file to discover all available pages before exploring further.
Available Shortcuts
- Undo
- Calculate
Undo Last Stroke
Shortcut:Cmd + Z (macOS) or Ctrl + Z (Windows/Linux)Removes the last drawing stroke from the canvas.The undo shortcut is bound to the
<Command-z> event in Tkinter, which automatically maps to Cmd on macOS and Ctrl on other platforms.How It Works
When you press the undo shortcut:- The application retrieves the last action from the actions list
- Each line in that action is deleted from the canvas
- The entire canvas is redrawn from the remaining actions
Keyboard Bindings Reference
Here’s a quick reference table of all keyboard shortcuts:| Action | macOS | Windows/Linux | Function |
|---|---|---|---|
| Undo | Cmd + Z | Ctrl + Z | Remove last stroke |
| Calculate | Return | Enter | Solve the equation |
Event Binding in Code
The shortcuts are implemented using Tkinter’s event binding system:Tkinter’s
<Command-z> binding automatically handles platform differences:- On macOS: Maps to Command (⌘) key
- On Windows/Linux: Maps to Control (Ctrl) key
Mouse Bindings
In addition to keyboard shortcuts, the application uses mouse event bindings for drawing:- Start Draw
- Paint
- Reset
Event:
<Button-1> (Left mouse button click)Initiates a new drawing stroke and creates a new action.No Clear Shortcut
There is currently no keyboard shortcut for the Clear function. You must click the Clear button to reset the entire canvas.
Cmd/Ctrl + Z repeatedly instead of clearing everything.