MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / onKeyDown

Function onKeyDown

web/pgadmin/static/js/Dialogs/MasterPasswordContent.jsx:40–45  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

38 };
39
40 const onKeyDown = (e) => {
41 // If enter key is pressed then click on OK button
42 if (e.key === 'Enter') {
43 okBtnRef.current?.click();
44 }
45 };
46
47 useEffect(() => {
48 setTimeout(() => {

Callers 1

MasterPasswordContentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected