Fixes missing key*-events for mobile Firefox
authorMatthias Schmidt <gravatronics@live.com>
Tue, 11 Mar 2014 20:55:05 +0000 (21:55 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 11 Mar 2014 20:55:05 +0000 (21:55 +0100)
wcfsetup/install/files/js/WCF.Label.js
wcfsetup/install/files/js/WCF.User.js
wcfsetup/install/files/js/WCF.js

index cfde218ce54d1ba1b2a0af4c9f9b8c817cb4b1fd..03881e4bc91b3a3e2c954554cb251c56776e5283 100644 (file)
@@ -20,11 +20,15 @@ WCF.Label.ACPList = Class.extend({
        _labelList: [ ],
        
        /**
-        * Intitializes the ACP label list.
+        * Initializes the ACP label list.
         */
        init: function() {
                this._labelInput = $('#label').keydown($.proxy(this._keyPressed, this)).keyup($.proxy(this._keyPressed, this)).blur($.proxy(this._keyPressed, this));
                
+               if ($.browser.mozilla && $.browser.touch) {
+                       this._labelInput.on('input', $.proxy(this._keyPressed, this));
+               }
+               
                $('#labelList').find('input[type="radio"]').each($.proxy(function(index, input) {
                        var $input = $(input);
                        
index 543a1e070199da5b6b324f576f62384b6efcd6c2..717297466e0701a0c78c83e0b5102113af219b08 100644 (file)
@@ -1175,6 +1175,11 @@ WCF.User.Registration.LostPassword = Class.extend({
                this._email.keyup($.proxy(this._checkEmail, this));
                this._username.keyup($.proxy(this._checkUsername, this));
                
+               if ($.browser.mozilla && $.browser.touch) {
+                       this._email.on('input', $.proxy(this._checkEmail, this));
+                       this._username.on('input', $.proxy(this._checkUsername, this));
+               }
+               
                // toggle fields on init
                this._checkEmail();
                this._checkUsername();
index fcc7901a8363828acc723cb2b1a0d0ed69f7939d..7c6c3c5af5bc59d0279a01a453fd108a41498485 100755 (executable)
@@ -5657,6 +5657,11 @@ WCF.Search.Base = Class.extend({
                }
                
                this._searchInput.keydown($.proxy(this._keyDown, this)).keyup($.proxy(this._keyUp, this)).wrap('<span class="dropdown" />');
+               
+               if ($.browser.mozilla && $.browser.touch) {
+                       this._searchInput.on('input', $.proxy(this._keyUp, this));
+               }
+               
                this._list = $('<ul class="dropdownMenu" />').insertAfter(this._searchInput);
                this._commaSeperated = (commaSeperated) ? true : false;
                this._oldSearchString = [ ];