cancel
Showing results for 
Search instead for 
Did you mean: 

Behavior for Enter key in pop-ups

oliver_mainka
Active Participant
0 Kudos

In Windows when I view a pop-up, one of the actions at the bottom of the pop-up is typically the default action (like "OK" or "Save"). Selecting a Windows Esc key on the keyboard cancels the pop-up, also in UI5, but I could not find a standard UI5 behavior for a "default pop-up action" and "Enter selects the default action".

Does this not exist, or did I just miss to find it?

I did see the accessibility-related pages describing tab orders.

Best, Oliver

View Entire Topic
former_member656694
Participant
0 Kudos

Hello Oliver,

Its possible to handle the esc key . Once you load the fragment , add below pice of code

this._fnLoadFragment(sDialogKey).then((oDialog) => {

oDialog.setEscapeHandler(function (oExcpEvent) { oExcpEvent.reject(); }); // handle esc

});