mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix an issue where global/native keyboard shortcuts are not working when any cell of data output grid has focus. #6579 (#6834)
This commit is contained in:
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
Block a user