Being annoyed with having to constantly open and close Fireworks’ modal Numeric Transform dialog, I thought it would be particularly useful in design applications to scale and reposition objects based on relative calculations like “this box should be 25 percent taller”.
- Enter a formula in a text field such as 10/2.
- Select the formula.
- Press Shift-Command-8.
Easy enough, but totally invisible unless you know it’s there (not necessarily a bad thing) and yet another keyboard shortcut to remember. The fact that Script Editor pops open is also mildly surprising and irritating.
Keeping the existing method (though not requiring Script Editor to perform the calculations) is fine for free-form text, but a design specific to number boxes would be very helpful in many applications. It reduces input repetition (a starting value is always available), application switching, and would be a great help to me as I have trouble doing math in my head. As Dan Saffer stated in his Designing Smart and Clever Applications presentation: “Do what humans have trouble doing but computers can do easily.”
- Giving focus to a number input field displays a calculator pop-out.
- As the user inputs a formula using the keyboard or pop-out, it is written into the field. This provides a hint to the user that they can type in formulas directly.
- The formula is executed when the user clicks the Equals button, presses the Equals or Return or Enter key, or moves focus away from the field. The pop-out calculator disappears whenever focus moves away from the field. In the image below, Enter was pressed, moving focus back to the object in the document window.