Fixed issue with calculating input focus on different input types

This commit is contained in:
Ryan Loader
2015-02-11 10:20:27 +13:00
parent d05177e17c
commit b950e56c0d

View File

@@ -551,7 +551,10 @@ Blockly.removeAllRanges = function() {
* @private
*/
Blockly.isTargetInput_ = function(e) {
return e.target.type == 'textarea' || e.target.type == 'text';
return e.target.type == 'textarea' || e.target.type == 'text'
|| e.target.type == 'number' || e.target.type == 'email'
|| e.target.type == 'password' || e.target.type == 'search'
|| e.target.type == 'tel' || e.target.type == 'url';
};
/**