pi-ask-tool-extension 0.2.3 → 0.2.4
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 +1 -1
- package/src/ask-inline-ui.ts +5 -0
- package/src/ask-tabs-ui.ts +5 -0
package/package.json
CHANGED
package/src/ask-inline-ui.ts
CHANGED
|
@@ -206,6 +206,11 @@ export async function askSingleQuestionWithInlineNote(
|
|
|
206
206
|
};
|
|
207
207
|
|
|
208
208
|
const handleInput = (data: string) => {
|
|
209
|
+
if (matchesKey(data, Key.ctrl("c"))) {
|
|
210
|
+
done({ cancelled: true });
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
|
|
209
214
|
if (isNoteEditorOpen) {
|
|
210
215
|
if (matchesKey(data, Key.tab) || matchesKey(data, Key.escape)) {
|
|
211
216
|
isNoteEditorOpen = false;
|
package/src/ask-tabs-ui.ts
CHANGED
|
@@ -438,6 +438,11 @@ export async function askQuestionsWithTabs(
|
|
|
438
438
|
};
|
|
439
439
|
|
|
440
440
|
const handleInput = (data: string) => {
|
|
441
|
+
if (matchesKey(data, Key.ctrl("c"))) {
|
|
442
|
+
done(createTabsUiStateSnapshot(true, selectedOptionIndexesByQuestion, noteByQuestionByOption));
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
|
|
441
446
|
if (isNoteEditorOpen) {
|
|
442
447
|
if (matchesKey(data, Key.tab) || matchesKey(data, Key.escape)) {
|
|
443
448
|
isNoteEditorOpen = false;
|