My Oracle Support Banner

How To Disable The Escape Key For The Pop Over Drawer Component <oj-drawer-popup>? (Doc ID 2950766.1)

Last updated on JUNE 01, 2023

Applies to:

Visual Builder Studio - Version 19.4.3 to 23.07.0
Information in this document applies to any platform.


A Visual Builder app uses the pop over <oj-drawer-popup> component to allow users to enter data. You have included 'Finish' and 'Cancel' buttons for use when data entry is complete. This closes the popup, depending on whether the user wishes to save or discard the data.

However users can also exit the component when pressing the <ESC> key (which does not capture the entered data). The <ESC> key may be entered accidentally. Or users, who may be less computer savvy may think that because the <ESC> key closes the component that the data is saved. This is not the case.

Trying to use javascript to have the <ESC> key return false and disabling the key does not have any affect (see Enable And Disable Keyboard Keys Using JavaScript).

How can the <ESC> key be disabled to prevent exiting the component without saving the data?


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.