DigiThinkIT / electron-virtual-keyboard

20 stars 13 forks source link

theres no way to update the inputs once you have initialized the keyboard #6

Closed Matt1700 closed 4 years ago

Matt1700 commented 5 years ago

I made an angularjs application with multiple pages. I need to update the $('input') selector every time the page changes. I tried initializing the keyboard every time but it doesn't work (the focus remains always on the first input).

Is there a way to completely remove the keyboard so that I can create a new one? Or a way to update the given inputs?

Thanks

Matt1700 commented 5 years ago

I found a way to detach all events from the keyboard: $('.keyboard-container').html(""); oldKeyboard.$el.unbind(); oldKeyboard.$container.unbind(); $('body').unbind("mouseup touchend");