use of elemental2.dom.KeyboardEvent in project kie-wb-common by kiegroup.
the class ListSelectorViewImpl method isEscape.
boolean isEscape(final Event event) {
final KeyboardEvent keyboardEvent = asElemental2Event(event);
final boolean isEscape = keyboardEvent.key.equals("Esc");
/* IE/Edge specific value */
final boolean isEsc = keyboardEvent.key.equals("Escape");
return isEscape || isEsc;
}
Aggregations