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

Function getEnterKeyHandler

web/pgadmin/static/js/utils.js:53–60  ·  view source on GitHub ↗
(clickHandler)

Source from the content-addressed store, hash-verified

51}
52
53export function getEnterKeyHandler(clickHandler) {
54 return (e)=>{
55 if(e.code === 'Enter'){
56 e.preventDefault();
57 clickHandler(e);
58 }
59 };
60}
61
62// Convert shortcut obj to codemirror key format
63export function toCodeMirrorKey(obj) {

Callers 3

StatusBarFunction · 0.90
PgReactTableHeaderFunction · 0.90
DoubleClickHandlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected