|
Lines 3062-3071
Link Here
|
| 3062 |
* execute the actions from the keypress handler. |
3062 |
* execute the actions from the keypress handler. |
| 3063 |
* Note: This only happens on the Mac and Linux (Firefox 3.6). |
3063 |
* Note: This only happens on the Mac and Linux (Firefox 3.6). |
| 3064 |
* |
3064 |
* |
| 3065 |
* Feature in Opera. Opera sends keypress events even for non-printable |
3065 |
* Feature in Opera < 12.16. Opera sends keypress events even for non-printable |
| 3066 |
* keys. The fix is to handle actions in keypress instead of keydown. |
3066 |
* keys. The fix is to handle actions in keypress instead of keydown. |
| 3067 |
*/ |
3067 |
*/ |
| 3068 |
if (((util.isMac || util.isLinux) && util.isFirefox < 4) || util.isOpera) { |
3068 |
if (((util.isMac || util.isLinux) && util.isFirefox < 4) || util.isOpera < 12.16) { |
| 3069 |
this._keyDownEvent = e; |
3069 |
this._keyDownEvent = e; |
| 3070 |
return true; |
3070 |
return true; |
| 3071 |
} |
3071 |
} |
|
Lines 3108-3114
Link Here
|
| 3108 |
return false; |
3108 |
return false; |
| 3109 |
} |
3109 |
} |
| 3110 |
} |
3110 |
} |
| 3111 |
if (((util.isMac || util.isLinux) && util.isFirefox < 4) || util.isOpera) { |
3111 |
if (((util.isMac || util.isLinux) && util.isFirefox < 4) || util.isOpera < 12.16) { |
| 3112 |
if (this._doAction(this._keyDownEvent)) { |
3112 |
if (this._doAction(this._keyDownEvent)) { |
| 3113 |
if (e.preventDefault) { e.preventDefault(); } |
3113 |
if (e.preventDefault) { e.preventDefault(); } |
| 3114 |
return false; |
3114 |
return false; |
|
Lines 3215-3221
Link Here
|
| 3215 |
}, 0); |
3215 |
}, 0); |
| 3216 |
} |
3216 |
} |
| 3217 |
if (this._clickCount === 1) { |
3217 |
if (this._clickCount === 1) { |
| 3218 |
result = this._setSelectionTo(e.clientX, e.clientY, e.shiftKey, !util.isOpera && this._hasFocus && this.isListening("DragStart")); //$NON-NLS-0$ |
3218 |
result = this._setSelectionTo(e.clientX, e.clientY, e.shiftKey, (!util.isOpera || util.isOpera >= 12.16) && this._hasFocus && this.isListening("DragStart")); //$NON-NLS-0$ |
| 3219 |
if (result) { this._setGrab(target); } |
3219 |
if (result) { this._setGrab(target); } |
| 3220 |
} else { |
3220 |
} else { |
| 3221 |
/* |
3221 |
/* |