GUAC-1053: Default to "none" input mode as before. Do not guess platform. Having the keyboard open automatically for all apparently-mobile users is disruptive.

This reverts commit 21d3e4550b.
This commit is contained in:
Michael Jumper
2015-04-20 10:53:43 -07:00
parent 8d884cf08a
commit 346cd4a4e5

View File

@@ -58,7 +58,7 @@ angular.module('settings').factory('preferenceService', ['$injector',
*
* @type String
*/
inputMethod : null
inputMethod : 'none'
};
@@ -88,17 +88,6 @@ angular.module('settings').factory('preferenceService', ['$injector',
}
catch (ignore) {}
// Choose reasonable default input method based on best-guess at platform
if (service.preferences.inputMethod === null) {
// Use text input by default if platform likely lacks physical keyboard
if (/android|ipad|iphone/i.test(navigator.userAgent))
service.preferences.inputMethod = 'text';
else
service.preferences.inputMethod = 'none';
}
// Persist settings when window is unloaded
$window.addEventListener('unload', service.save);