This document provides an overview of the keyboard shortcuts available for controlling the calculator. These mappings help streamline the calculator's functionality, allowing you to perform operations quickly using your keyboard.
- Number Keys (
0-9
): Input the corresponding number. - Addition (
+
): Input the addition operator. - Subtraction (
-
): Input the subtraction operator. - Multiplication (
*
): Input the multiplication operator (×
). - Division (
/
): Input the division operator (÷
). - Decimal Point (
.
): Input the decimal point.
- Answer (
a
orA
): Input theans
placeholder for the previous result. - Enter or Equals (
Enter
or=
): Calculate the result and display it. (e.preventDefault()
is called to prevent the default action of the Enter key in some environments.)
- Shift + (
+
or-
): Toggle the sign of the current number input. - Escape or Ctrl + Backspace: Clear all inputs and reset the calculator.
- Backspace: Delete the last input character.