restty 0.1.27 → 0.1.28
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/{chunk-nmvs4yn9.js → chunk-8za9xm0g.js} +13 -15
- package/dist/internal.js +1 -1
- package/dist/restty.js +1 -1
- package/dist/xterm.js +1 -1
- package/package.json +1 -1
|
@@ -54667,7 +54667,8 @@ function createRuntimeInteraction(options) {
|
|
|
54667
54667
|
const canvas = getCanvas();
|
|
54668
54668
|
if (!canvas)
|
|
54669
54669
|
return;
|
|
54670
|
-
|
|
54670
|
+
const showPointer = linkState.hoverId !== 0 && !selectionState.active && !selectionState.dragging;
|
|
54671
|
+
canvas.style.cursor = showPointer ? "pointer" : "text";
|
|
54671
54672
|
};
|
|
54672
54673
|
const isTouchPointer = (event) => {
|
|
54673
54674
|
return event.pointerType === "touch";
|
|
@@ -58823,15 +58824,6 @@ function createRuntimeAppApi(options) {
|
|
|
58823
58824
|
}
|
|
58824
58825
|
return false;
|
|
58825
58826
|
}
|
|
58826
|
-
async function handlePasteShortcut(event) {
|
|
58827
|
-
const pasted = await pasteFromClipboard2();
|
|
58828
|
-
if (pasted)
|
|
58829
|
-
return;
|
|
58830
|
-
const seq = inputHandler.encodeKeyEvent(event);
|
|
58831
|
-
if (!seq)
|
|
58832
|
-
return;
|
|
58833
|
-
ptyInputRuntime.sendKeyInput(seq);
|
|
58834
|
-
}
|
|
58835
58827
|
function clearScreen() {
|
|
58836
58828
|
sendInput("\x1B[2J\x1B[H");
|
|
58837
58829
|
}
|
|
@@ -58884,18 +58876,24 @@ function createRuntimeAppApi(options) {
|
|
|
58884
58876
|
if (!shared.wasmReady || !shared.wasmHandle)
|
|
58885
58877
|
return;
|
|
58886
58878
|
const key = event.key?.toLowerCase?.() ?? "";
|
|
58887
|
-
const
|
|
58888
|
-
const
|
|
58879
|
+
const hasPrimaryShortcutModifier = isMacPlatform ? event.metaKey : event.ctrlKey;
|
|
58880
|
+
const wantsCopy = hasPrimaryShortcutModifier && !event.altKey && (key === "c" || event.shiftKey && key === "c");
|
|
58881
|
+
const wantsPaste = hasPrimaryShortcutModifier && !event.altKey && (key === "v" || event.shiftKey && key === "v");
|
|
58889
58882
|
if (wantsCopy && interaction.selectionState.active) {
|
|
58890
58883
|
event.preventDefault();
|
|
58891
58884
|
copySelectionToClipboard();
|
|
58892
58885
|
return;
|
|
58893
58886
|
}
|
|
58894
58887
|
if (wantsPaste) {
|
|
58888
|
+
if (imeInput) {
|
|
58889
|
+
ensureImeInputFocus();
|
|
58890
|
+
return;
|
|
58891
|
+
}
|
|
58895
58892
|
event.preventDefault();
|
|
58896
|
-
|
|
58897
|
-
|
|
58898
|
-
|
|
58893
|
+
const seq2 = inputHandler.encodeKeyEvent(event);
|
|
58894
|
+
if (seq2) {
|
|
58895
|
+
ptyInputRuntime.sendKeyInput(seq2);
|
|
58896
|
+
}
|
|
58899
58897
|
return;
|
|
58900
58898
|
}
|
|
58901
58899
|
const seq = inputHandler.encodeKeyEvent(event);
|
package/dist/internal.js
CHANGED
package/dist/restty.js
CHANGED
package/dist/xterm.js
CHANGED