[gwt-contrib] Elemental2: KeyboardEvent Issues in Safari

2017-08-01 Thread Harsh Yadav
The following code breaks in Safari, as KeyboardEvent.key is not supported in Safari (https://www.w3schools.com/jsref/event_key_key.asp): inputElement.addEventListener("keypress", inKeyPressEvent -> { if (!"Enter".equals(((KeyboardEvent) inKeyPressEvent).key)) { handleKeyPress(); } });

Re: [gwt-contrib] Elemental2: KeyboardEvent Issues in Safari

2017-08-01 Thread 'Goktug Gokdogan' via GWT Contributors
Per https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key and https://caniuse.com/#feat=keyboardevent-key it is available in Safari. Being said that pls use gwt-user group for getting support. On Wed, Jul 26, 2017 at 4:44 PM, Harsh Yadav wrote: > The following code breaks in Saf