Fix an issue where global/native keyboard shortcuts are not working when any cell of data output grid has focus. #6579 (#6834)
parent
7ce07f7dcf
commit
5113fda7a6
|
@ -253,8 +253,11 @@ function initialiseColumns(columns, rows, totalRowCount, columnWidthBy) {
|
||||||
col.editorOptions = {
|
col.editorOptions = {
|
||||||
commitOnOutsideClick: false,
|
commitOnOutsideClick: false,
|
||||||
onCellKeyDown: (e)=>{
|
onCellKeyDown: (e)=>{
|
||||||
/* Do not open the editor */
|
// global keyboard shortcuts will work now and will open the the editor for the cell once pgAdmin reopens
|
||||||
e.preventDefault();
|
if(!e.metaKey && !e.altKey && !e.shiftKey && !e.ctrlKey){
|
||||||
|
/* Do not open the editor */
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
setEditorFormatter(col);
|
setEditorFormatter(col);
|
||||||
|
|
Loading…
Reference in New Issue