Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 420875
Collapse All | Expand All

(-)a/bundles/org.eclipse.orion.client.core/web/orion/util.js (-1 / +1 lines)
Lines 15-21 Link Here
15
	var userAgent = navigator.userAgent;
15
	var userAgent = navigator.userAgent;
16
	var isIE = (userAgent.indexOf("MSIE") !== -1 || userAgent.indexOf("Trident") !== -1) ? document.documentMode : undefined; //$NON-NLS-1$ //$NON-NLS-0$
16
	var isIE = (userAgent.indexOf("MSIE") !== -1 || userAgent.indexOf("Trident") !== -1) ? document.documentMode : undefined; //$NON-NLS-1$ //$NON-NLS-0$
17
	var isFirefox = parseFloat(userAgent.split("Firefox/")[1] || userAgent.split("Minefield/")[1]) || undefined; //$NON-NLS-1$ //$NON-NLS-0$
17
	var isFirefox = parseFloat(userAgent.split("Firefox/")[1] || userAgent.split("Minefield/")[1]) || undefined; //$NON-NLS-1$ //$NON-NLS-0$
18
	var isOpera = userAgent.indexOf("Opera") !== -1; //$NON-NLS-0$
18
	var isOpera = userAgent.indexOf("Opera") !== -1 ? parseFloat(userAgent.split("Version/")[1]) : undefined; //$NON-NLS-0$
19
	var isChrome = parseFloat(userAgent.split("Chrome/")[1]) || undefined; //$NON-NLS-0$
19
	var isChrome = parseFloat(userAgent.split("Chrome/")[1]) || undefined; //$NON-NLS-0$
20
	var isSafari = userAgent.indexOf("Safari") !== -1 && !isChrome; //$NON-NLS-0$
20
	var isSafari = userAgent.indexOf("Safari") !== -1 && !isChrome; //$NON-NLS-0$
21
	var isWebkit = parseFloat(userAgent.split("WebKit/")[1]) || undefined; //$NON-NLS-0$
21
	var isWebkit = parseFloat(userAgent.split("WebKit/")[1]) || undefined; //$NON-NLS-0$
(-)a/bundles/org.eclipse.orion.client.editor/web/orion/editor/textView.js (-4 / +4 lines)
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
				/*

Return to bug 420875