关于sencha touch中给文本添加焦点无效的解决方案

目前的解决方案是给你的执行代码加上一个timeout延迟100ms+

setTimeout(function(){
                SoftKeyboard.isShowing(function(isShowing){
                    textfields[0].focus();
                    if(!isShowing) {
                        SoftKeyboard.show();
                        container.hide();
                    }
                }, function(){
                    console.log('fail');
                });
            },800);
原文地址:https://www.cnblogs.com/cjpx00008/p/3610889.html