@opentui/core 0.1.54 → 0.1.55

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/index.js CHANGED
@@ -137,7 +137,7 @@ import {
137
137
  white,
138
138
  wrapWithDelegates,
139
139
  yellow
140
- } from "./index-aedd54rx.js";
140
+ } from "./index-0razn4m6.js";
141
141
  // src/text-buffer-view.ts
142
142
  class TextBufferView {
143
143
  lib;
@@ -5622,7 +5622,7 @@ class InputRenderable extends Renderable {
5622
5622
  this.emit("enter" /* ENTER */, this._value);
5623
5623
  return true;
5624
5624
  default:
5625
- if (keySequence && keySequence.length === 1 && keySequence.charCodeAt(0) >= 32 && keySequence.charCodeAt(0) <= 126) {
5625
+ if (keySequence && keySequence.length === 1 && keySequence.charCodeAt(0) >= 32 && keySequence.charCodeAt(0) <= 126 && (typeof key === "string" || !key.ctrl && !key.meta && !key.super && !key.hyper)) {
5626
5626
  this.insertText(keySequence);
5627
5627
  return true;
5628
5628
  }
@@ -8159,6 +8159,7 @@ class TextareaRenderable extends EditBufferRenderable {
8159
8159
  const keyShift = typeof key === "string" ? false : key.shift;
8160
8160
  const keyMeta = typeof key === "string" ? false : key.meta;
8161
8161
  const keySuper = typeof key === "string" ? false : key.super;
8162
+ const keyHyper = typeof key === "string" ? false : key.hyper;
8162
8163
  const bindingKey = getKeyBindingKey({
8163
8164
  name: keyName,
8164
8165
  ctrl: keyCtrl,
@@ -8174,7 +8175,7 @@ class TextareaRenderable extends EditBufferRenderable {
8174
8175
  return handler();
8175
8176
  }
8176
8177
  }
8177
- if (keySequence && !keyCtrl && !keyMeta) {
8178
+ if (keySequence && !keyCtrl && !keyMeta && !keySuper && !keyHyper) {
8178
8179
  const firstCharCode = keySequence.charCodeAt(0);
8179
8180
  if (firstCharCode < 32) {
8180
8181
  return false;
@@ -8656,5 +8657,5 @@ export {
8656
8657
  ASCIIFont
8657
8658
  };
8658
8659
 
8659
- //# debugId=04B0510AE1DAC91C64756E2164756E21
8660
+ //# debugId=C184A1CDDE59DFEA64756E2164756E21
8660
8661
  //# sourceMappingURL=index.js.map