if (!Settings.explicitScrollOnly) { switch(ke.getKeyCode()) { case KeyEvent.VK_UP : scroll.y -= 36; break; case KeyEvent.VK_DOWN : scroll.y += 36; break; case KeyEvent.VK_LEFT : scroll.x -= 36; break; case KeyEvent.VK_RIGHT : scroll.x += 36; break; case KeyEvent.VK_SHIFT : shiftKeyHeld = true; initShiftScroll = true; break; } }
switch(ke.getKeyCode()) { case KeyEvent.VK_UP : scroll.y -= 36; break; case KeyEvent.VK_DOWN : scroll.y += 36; break; case KeyEvent.VK_LEFT : scroll.x -= 36; break; case KeyEvent.VK_RIGHT : scroll.x += 36; break; case KeyEvent.VK_SHIFT : shiftKeyHeld = true; initShiftScroll = true; break; }
    public void keyPressed(KeyEvent ke) {    	if (!Settings.explicitScrollOnly) {	        switch(ke.getKeyCode()) {	        case KeyEvent.VK_UP :	            scroll.y -= 36;	            break;	        case KeyEvent.VK_DOWN :	            scroll.y += 36;	            break;	        case KeyEvent.VK_LEFT :	            scroll.x -= 36;	            break;	        case KeyEvent.VK_RIGHT :	            scroll.x += 36;	            break;	        case KeyEvent.VK_SHIFT :	            shiftKeyHeld = true;	            initShiftScroll = true;	            break;	        }    	}        if (isTipShowing()) {            hideTooltip();        }        lastIdle = System.currentTimeMillis();        checkScrollBounds();        repaint();    }