对于测试程序,我们只简单地让键侦听器根据按下的是左还是右shift键按向上或向下的方向循环,如清单5所示。
For the test program, we'll simply have a key listener loop up or down based on whether the left or right shift key is pressed, as shown in Listing 5.
输入右括号后,右括号和其对称的左括号都会保持反白显示数秒钟,或是直到您按下其他按键或移动游标为止。
When you type a closing bracket, both it and its matching bracket remain highlighted for a few seconds, or until you type another key or move the cursor.
维持鼠标按键按下的状态下,用户可以操控箭头键将所选对象向上、下、左或右每次移动1个像素。
While holding down the mouse button, a user can manipulate the arrow keys to move the selection up, down, left, or right-one pixel at a time.
维持鼠标按键按下的状态下,用户可以操控箭头键将所选对象向上、下、左或右每次移动1个像素。
While holding down the mouse button, a user can manipulate the arrow keys to move the selection up, down, left, or right-one pixel at a time.
应用推荐