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

Function onKeyDown

web/pgadmin/static/js/Dialogs/NamedRestoreContent.jsx:37–42  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

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

Callers 1

NamedRestoreContentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected