Здравствуйте. Подключил IME Shell, создал объект, вроде бы все нормально, переключается между инпутами и тд и тп. Но вот как в IME Shelle в этой табличке, где показан ввод переключится, чтобы не буквы с цифр вводились, а тупо цифры?
var ime_login = new IMEShell("login", ime_callback);
var ime_password = new IMEShell("password", ime_callback);
var tvKey = new Common.API.TVKeyValue();
ime_login.setEnterFunc(onEnter);
ime_login.setKeyFunc( tvKey.KEY_RETURN, onReturn );
ime_login.setString(Setup.login);
ime_password.setEnterFunc(onEnter);
ime_password.setKeyFunc( tvKey.KEY_RETURN, onReturn );
ime_password.setString(Setup.password);
ime_login.setKeyFunc(tvKey.KEY_UP, function(keyCode) { document.getElementById('pornpassword').focus(); document.getElementById('pornpassword').style["background-color"]="#3366FF"; document.getElementById('login').style["background-color"]="#FFFFFF"; return false; } );
ime_login.setKeyFunc(tvKey.KEY_DOWN, function(keyCode) { document.getElementById('password').focus();docume nt.getElementById('password').style["background-color"]="#3366FF"; document.getElementById('login').style["background-color"]="#FFFFFF"; return false; } );
ime_password.setKeyFunc(tvKey.KEY_UP, function(keyCode) { document.getElementById('login').focus(); document.getElementById('login').style["background-color"]="#3366FF"; document.getElementById('password').style["background-color"]="#FFFFFF"; return false; } );
ime_password.setKeyFunc(tvKey.KEY_DOWN, function(keyCode) { document.getElementById('pornpassword').focus(); document.getElementById('pornpassword').style["background-color"]="#3366FF"; document.getElementById('password').style["background-color"]="#FFFFFF"; return false; } );
var ime_login = new IMEShell("login", ime_callback);
var ime_password = new IMEShell("password", ime_callback);
var tvKey = new Common.API.TVKeyValue();
ime_login.setEnterFunc(onEnter);
ime_login.setKeyFunc( tvKey.KEY_RETURN, onReturn );
ime_login.setString(Setup.login);
ime_password.setEnterFunc(onEnter);
ime_password.setKeyFunc( tvKey.KEY_RETURN, onReturn );
ime_password.setString(Setup.password);
ime_login.setKeyFunc(tvKey.KEY_UP, function(keyCode) { document.getElementById('pornpassword').focus(); document.getElementById('pornpassword').style["background-color"]="#3366FF"; document.getElementById('login').style["background-color"]="#FFFFFF"; return false; } );
ime_login.setKeyFunc(tvKey.KEY_DOWN, function(keyCode) { document.getElementById('password').focus();docume nt.getElementById('password').style["background-color"]="#3366FF"; document.getElementById('login').style["background-color"]="#FFFFFF"; return false; } );
ime_password.setKeyFunc(tvKey.KEY_UP, function(keyCode) { document.getElementById('login').focus(); document.getElementById('login').style["background-color"]="#3366FF"; document.getElementById('password').style["background-color"]="#FFFFFF"; return false; } );
ime_password.setKeyFunc(tvKey.KEY_DOWN, function(keyCode) { document.getElementById('pornpassword').focus(); document.getElementById('pornpassword').style["background-color"]="#3366FF"; document.getElementById('password').style["background-color"]="#FFFFFF"; return false; } );