You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There isn't anything built into the keyboard to do that, but you can include the code below to add a lock/unlock button (demo):
$('#keyboard').keyboard({// Prevents direct input in the preview window when truelockInput: true,visible: function(e,kb,el){if(!kb.$keyboard.find('.ui-keyboard-lock').length){kb.$keyboard.append('<button class="ui-keyboard-button ui-keyboard-lock ui-state-default ui-corner-all"><span class="ui-icon-locked ui-icon"></span></button>');kb.$keyboard.find('.ui-keyboard-lock').click(function(){varlocked=!kb.options.lockInput;kb.options.lockInput=locked;kb.$preview.toggleClass('ui-keyboard-lockedinput',locked).prop('readonly',locked);$(this).find('span').toggleClass('ui-icon-locked',locked).toggleClass('ui-icon-unlocked',!locked);});}}})
When used "lockInput: true" , I can only input throw virtual keyboard. Is there a button or such a similar method that can change to real keyboard?
The text was updated successfully, but these errors were encountered: