querysub 0.331.0 → 0.333.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ export class UpdateButtons extends qreact.Component<{
|
|
|
58
58
|
showFullscreenModal({
|
|
59
59
|
content: <div>
|
|
60
60
|
<InputLabel
|
|
61
|
-
label="Commit message (shift+enter to commit, escape to cancel)"
|
|
61
|
+
label="Commit message (shift+enter/shift+tab to commit, escape to cancel)"
|
|
62
62
|
value={""}
|
|
63
63
|
textarea
|
|
64
64
|
fillWidth
|
|
@@ -67,7 +67,8 @@ export class UpdateButtons extends qreact.Component<{
|
|
|
67
67
|
onKeyDown={async e => {
|
|
68
68
|
let value = e.currentTarget.value;
|
|
69
69
|
if (!value) return;
|
|
70
|
-
if (e.key === "Enter" && e.shiftKey) {
|
|
70
|
+
if (e.key === "Enter" && e.shiftKey || e.key === "Tab" && e.shiftKey) {
|
|
71
|
+
e.preventDefault();
|
|
71
72
|
await controller.commitPushAndPublishQuerysub.promise(value);
|
|
72
73
|
closeAllModals();
|
|
73
74
|
}
|
|
@@ -100,7 +101,7 @@ export class UpdateButtons extends qreact.Component<{
|
|
|
100
101
|
showFullscreenModal({
|
|
101
102
|
content: <div>
|
|
102
103
|
<InputLabel
|
|
103
|
-
label="Commit message (shift+enter to commit, escape to cancel)"
|
|
104
|
+
label="Commit message (shift+enter/shift+tab to commit, escape to cancel)"
|
|
104
105
|
value={""}
|
|
105
106
|
textarea
|
|
106
107
|
fillWidth
|
|
@@ -109,7 +110,8 @@ export class UpdateButtons extends qreact.Component<{
|
|
|
109
110
|
onKeyDown={async e => {
|
|
110
111
|
let value = e.currentTarget.value;
|
|
111
112
|
if (!value) return;
|
|
112
|
-
if (e.key === "Enter" && e.shiftKey) {
|
|
113
|
+
if (e.key === "Enter" && e.shiftKey || e.key === "Tab" && e.shiftKey) {
|
|
114
|
+
e.preventDefault();
|
|
113
115
|
await controller.commitPushService.promise(value);
|
|
114
116
|
closeAllModals();
|
|
115
117
|
}
|