/src/main/java/org/htmlunit/html/HtmlElement.java
shiftDown = new org.htmlunit.javascript.host.event.KeyboardEvent(this, org.htmlunit.javascript.host.event.Event.TYPE_KEY_DOWN, org.htmlunit.javascript.host.event.KeyboardEvent.DOM_VK_SHIFT, true, ctrlPressed_, altPressed_); shiftDownResult = fireEvent(shiftDown);
if ( isShiftNeeded ) { shiftDown = new KeyboardEvent ( this, Event.TYPE_KEY_DOWN, KeyboardEvent.DOM_VK_SHIFT, true, ctrlPressed_, altPressed_ ) ; shiftDownResult = fireEvent ( shiftDown ) ; }
if (page.getFocusedElement() != this) { focus(); } final boolean isShiftNeeded = KeyboardEvent.isShiftNeeded(c, shiftPressed_); final Event shiftDown; final ScriptResult shiftDownResult; <extra_id_0> else { shiftDown = null; shiftDownResult = null; } final Event keyDown = new KeyboardEvent(this, Event.TYPE_KEY_DOWN, c, shiftPressed_ || isShiftNeeded, ctrlPressed_, altPressed_);