IOS Bluetooth Keyboard - Inputs - Tab Event IOS Bluetooth Keyboard - Inputs - Tab Event ios ios

IOS Bluetooth Keyboard - Inputs - Tab Event


You can try using this library in order to have these events:

  • previousbuttonclick
  • nextbuttonclick

Then when you detect the element next to textarea is focused you come back to your textarea and insert whatever you want.


I believe this is known problem with tabs in iOS. I found similar question on stackoverflow. Just add this hack before your code:

var oldAddEventListener = EventTarget.prototype.addEventListener;EventTarget.prototype.addEventListener = function(eventName, eventHandler){  oldAddEventListener.call(this, eventName, function(e) {      if(e.target.id === "textarea" && e.keyCode===9){        e.preventDefault();      }    eventHandler(e);  });};

Please check, it should work. Example