FEATURE: Add shortcut keys for save and execute for query editor (#299)

This is a very simple change that adds two shortcuts to the query editor
in Data Explorer: `ctrl+s` to save, and `ctrl+enter` to save and run the
query.

Related meta topic: https://meta.discourse.org/t/wishlist-ctrl-enter-to-run-the-data-explorer-query-im-editing/280564
This commit is contained in:
锦心 2024-07-22 16:14:22 +08:00 committed by GitHub
parent 6e986c008c
commit 6db96d6687
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,8 @@
@mode="sql" @mode="sql"
@disabled={{this.selectedItem.destroyed}} @disabled={{this.selectedItem.destroyed}}
{{on "click" this.setDirty}} {{on "click" this.setDirty}}
@save={{this.save}}
@submit={{this.saveAndRun}}
/> />
</div> </div>