Ctrl+G cancels running requests as well
This commit is contained in:
@@ -2828,7 +2828,12 @@ export default {
|
|||||||
this._keyListener = function (e) {
|
this._keyListener = function (e) {
|
||||||
if (e.key === "g" && (e.ctrlKey || e.metaKey)) {
|
if (e.key === "g" && (e.ctrlKey || e.metaKey)) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
this.sendRequest()
|
console.log(this.runningRequest)
|
||||||
|
if (!this.runningRequest) {
|
||||||
|
this.sendRequest()
|
||||||
|
} else {
|
||||||
|
this.cancelRequest()
|
||||||
|
}
|
||||||
} else if (e.key === "s" && (e.ctrlKey || e.metaKey)) {
|
} else if (e.key === "s" && (e.ctrlKey || e.metaKey)) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
this.saveRequest()
|
this.saveRequest()
|
||||||
|
|||||||
Reference in New Issue
Block a user