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 = {
|
||||
commitOnOutsideClick: false,
|
||||
onCellKeyDown: (e)=>{
|
||||
/* Do not open the editor */
|
||||
e.preventDefault();
|
||||
// global keyboard shortcuts will work now and will open the the editor for the cell once pgAdmin reopens
|
||||
if(!e.metaKey && !e.altKey && !e.shiftKey && !e.ctrlKey){
|
||||
/* Do not open the editor */
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
};
|
||||
setEditorFormatter(col);
|
||||
|
|
Loading…
Reference in New Issue