mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-12-28 18:01:22 -06:00
Ensure keyboard shortcut for query execution is disabled when query execution is in progress. #6664
This commit is contained in:
parent
8afa17d692
commit
0b24a8f39a
@ -393,19 +393,19 @@ export function MainToolBar({containerRef, onFilterClick, onManageMacros}) {
|
||||
{
|
||||
shortcut: queryToolPref.execute_query,
|
||||
options: {
|
||||
callback: ()=>{executeQuery();}
|
||||
callback: ()=>{!buttonsDisabled['execute']?executeQuery():null;}
|
||||
}
|
||||
},
|
||||
{
|
||||
shortcut: queryToolPref.explain_query,
|
||||
options: {
|
||||
callback: (e)=>{e.preventDefault();explain();}
|
||||
callback: (e)=>{e.preventDefault(); !buttonsDisabled['explain']?explain():null;}
|
||||
}
|
||||
},
|
||||
{
|
||||
shortcut: queryToolPref.explain_analyze_query,
|
||||
options: {
|
||||
callback: ()=>{explainAnalyse();}
|
||||
callback: ()=>{!buttonsDisabled['explain_analyse']?explainAnalyse():null;}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user