* Enter the special 'formula mode' where users can enter a math expression that will be evaluated on blur and `enter` * @private
()
| 6447 | * @private |
| 6448 | */ |
| 6449 | _enterFormulaMode() { |
| 6450 | if (this.settings.formulaMode) { |
| 6451 | this.formulaMode = true; // 'Deactivate' the normal event listeners behavior |
| 6452 | // Clear the input and add a '=' sign to it |
| 6453 | AutoNumericHelper.setElementValue(this.domElement, '='); |
| 6454 | // Put the caret after the `=` character |
| 6455 | AutoNumericHelper.setElementSelection(this.domElement, 1); |
| 6456 | } |
| 6457 | } |
| 6458 | |
| 6459 | /** |
| 6460 | * Exit the formula mode |
no test coverage detected