Java Reference
In-Depth Information
r = "Damage to poorly constructed buildings";
if (richter >= 3.5)
r = "Felt by many people, no destruction";
if (richter >= 0)
r = "Generally not felt by people";
Now the alternatives are no longer exclusive. If richter is 6.0, then the last four
tests all match, and r is set four times.
P RODUCTIVITY H INT 5.2: Keyboard Shortcuts for
Mouse Operations
Programmers spend a lot of time with the keyboard. Programs and
documentation are many pages long and require a lot of typing. This makes you
different from the average computer user who uses the mouse more often than
the keyboard.
Unfortunately for you, modern user interfaces are optimized for the mouse. The
mouse is the most obvious tool for switching between windows, and for
selecting commands. The constant swi tching between the keyboard and the
mouse slows you down. You need to move a hand off the keyboard, locate the
mouse, move the mouse, click the mouse, and move the hand back onto the
keyboard. For that reason, most user interfaces have keyboard shortcuts:
combinations of keystrokes that allow you to achieve the same tasks without
having to switch to the mouse at all.
195
196
All Microsoft Windows applications use the following conventions:
ȗ
The Alt key plus the underlined letter in a menu name (such as the F in
ȒFileȓ) pulls down that menu. Inside a menu, just type the underlined
character in the name of a submenu to activate it. For example, Alt+F
followed by O selects ȒFileȓ ȒOpenȓ. Once your fingers know about this
combination, you can open files faster than the fastest mouse artist.
ȗ
Inside dialog boxes, the Tab key is important; it moves from one option to
the next. The arrow keys move within an option. The Enter key accepts the
entire dialog box, and Esc cancels it.
Search WWH ::




Custom Search