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.
@@ -54667,7 +54667,8 @@ function createRuntimeInteraction(options) {
54667
54667
  const canvas = getCanvas();
54668
54668
  if (!canvas)
54669
54669
  return;
54670
- canvas.style.cursor = "text";
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 wantsCopy = (event.metaKey || event.ctrlKey) && !event.altKey && (key === "c" || event.shiftKey && key === "c");
58888
- const wantsPaste = (event.metaKey || event.ctrlKey) && !event.altKey && (key === "v" || event.shiftKey && key === "v");
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
- if (imeInput)
58897
- imeInput.focus({ preventScroll: true });
58898
- handlePasteShortcut(event);
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
@@ -100,7 +100,7 @@ import {
100
100
  updateGridState,
101
101
  updateImePosition,
102
102
  updateSelection
103
- } from "./chunk-nmvs4yn9.js";
103
+ } from "./chunk-8za9xm0g.js";
104
104
  export {
105
105
  updateSelection,
106
106
  updateImePosition,
package/dist/restty.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  isBuiltinThemeName,
9
9
  listBuiltinThemeNames,
10
10
  parseGhosttyTheme
11
- } from "./chunk-nmvs4yn9.js";
11
+ } from "./chunk-8za9xm0g.js";
12
12
  export {
13
13
  parseGhosttyTheme,
14
14
  listBuiltinThemeNames,
package/dist/xterm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createRestty
3
- } from "./chunk-nmvs4yn9.js";
3
+ } from "./chunk-8za9xm0g.js";
4
4
 
5
5
  // src/xterm/app-options.ts
6
6
  function createCompatAppOptions(userAppOptions, emitData) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "restty",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "Browser terminal rendering library powered by WASM, WebGPU/WebGL2, and TypeScript text shaping.",
5
5
  "keywords": [
6
6
  "terminal",