@wichayutdew/pi-workflows 3.0.0 → 3.1.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/dist/index.js +3 -5
- package/package.json +1 -1
- package/src/workflow-status/view.ts +3 -7
package/dist/index.js
CHANGED
|
@@ -3724,9 +3724,7 @@ class WorkflowStatusView {
|
|
|
3724
3724
|
}
|
|
3725
3725
|
invalidate() {}
|
|
3726
3726
|
handleInput(data) {
|
|
3727
|
-
|
|
3728
|
-
const isDetailHalfPageUp = this.state.mode === "detail" && matchesKey(data, Key.ctrl("u"));
|
|
3729
|
-
if (data === "q" || data === "Q" || matchesKey(data, "ctrl+c") || this.state.mode !== "detail" && matchesKey(data, "ctrl+d") || matchesKey(data, this.statusShortcut)) {
|
|
3727
|
+
if (data === "q" || data === "Q" || matchesKey(data, "ctrl+c") || this.state.mode === "board" && matchesKey(data, "ctrl+d") || matchesKey(data, this.statusShortcut)) {
|
|
3730
3728
|
this.close();
|
|
3731
3729
|
return;
|
|
3732
3730
|
}
|
|
@@ -3772,9 +3770,9 @@ class WorkflowStatusView {
|
|
|
3772
3770
|
this.setScrollOffset(this.state.scrollOffset + 1);
|
|
3773
3771
|
} else if (matchesKey(data, Key.up) || data === "k") {
|
|
3774
3772
|
this.setScrollOffset(this.state.scrollOffset - 1);
|
|
3775
|
-
} else if (
|
|
3773
|
+
} else if (matchesKey(data, Key.ctrl("d"))) {
|
|
3776
3774
|
this.setScrollOffset(this.state.scrollOffset + halfPageSize);
|
|
3777
|
-
} else if (
|
|
3775
|
+
} else if (matchesKey(data, Key.ctrl("u"))) {
|
|
3778
3776
|
this.setScrollOffset(this.state.scrollOffset - halfPageSize);
|
|
3779
3777
|
} else if (matchesKey(data, Key.pageDown)) {
|
|
3780
3778
|
this.setScrollOffset(this.state.scrollOffset + pageSize);
|
package/package.json
CHANGED
|
@@ -182,15 +182,11 @@ export class WorkflowStatusView implements Component {
|
|
|
182
182
|
|
|
183
183
|
/** Handle close and scrolling key input. */
|
|
184
184
|
handleInput(data: string): void {
|
|
185
|
-
const isDetailHalfPageDown =
|
|
186
|
-
this.state.mode === 'detail' && matchesKey(data, Key.ctrl('d'));
|
|
187
|
-
const isDetailHalfPageUp =
|
|
188
|
-
this.state.mode === 'detail' && matchesKey(data, Key.ctrl('u'));
|
|
189
185
|
if (
|
|
190
186
|
data === 'q' ||
|
|
191
187
|
data === 'Q' ||
|
|
192
188
|
matchesKey(data, 'ctrl+c') ||
|
|
193
|
-
(this.state.mode
|
|
189
|
+
(this.state.mode === 'board' && matchesKey(data, 'ctrl+d')) ||
|
|
194
190
|
matchesKey(data, this.statusShortcut)
|
|
195
191
|
) {
|
|
196
192
|
this.close();
|
|
@@ -234,9 +230,9 @@ export class WorkflowStatusView implements Component {
|
|
|
234
230
|
this.setScrollOffset(this.state.scrollOffset + 1);
|
|
235
231
|
} else if (matchesKey(data, Key.up) || data === 'k') {
|
|
236
232
|
this.setScrollOffset(this.state.scrollOffset - 1);
|
|
237
|
-
} else if (
|
|
233
|
+
} else if (matchesKey(data, Key.ctrl('d'))) {
|
|
238
234
|
this.setScrollOffset(this.state.scrollOffset + halfPageSize);
|
|
239
|
-
} else if (
|
|
235
|
+
} else if (matchesKey(data, Key.ctrl('u'))) {
|
|
240
236
|
this.setScrollOffset(this.state.scrollOffset - halfPageSize);
|
|
241
237
|
} else if (matchesKey(data, Key.pageDown)) {
|
|
242
238
|
this.setScrollOffset(this.state.scrollOffset + pageSize);
|