@netless/app-slide 0.2.36 → 0.2.37

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/main.es.js CHANGED
@@ -36568,6 +36568,12 @@ function clamp$1(value, min, max) {
36568
36568
  function isObj(obj) {
36569
36569
  return typeof obj === "object" && obj !== null;
36570
36570
  }
36571
+ function isEditable(el) {
36572
+ if (!el)
36573
+ return false;
36574
+ const tagName = el.tagName;
36575
+ return tagName === "INPUT" || tagName === "TEXTAREA" || tagName === "SELECT";
36576
+ }
36571
36577
  var colorString = { exports: {} };
36572
36578
  var colorName = {
36573
36579
  "aliceblue": [240, 248, 255],
@@ -38501,7 +38507,7 @@ class SlideDocsViewer {
38501
38507
  this.viewer.$content.appendChild(this.renderWhiteboardView());
38502
38508
  this.viewer.$content.appendChild(this.renderOverlay());
38503
38509
  this.sideEffect.addEventListener(window, "keydown", (ev) => {
38504
- if (this.box.focus && this.slideController) {
38510
+ if (this.box.focus && this.slideController && !isEditable(ev.target)) {
38505
38511
  switch (ev.key) {
38506
38512
  case "ArrowUp":
38507
38513
  case "ArrowLeft": {
@@ -38842,7 +38848,7 @@ class SlidePreviewer {
38842
38848
  }
38843
38849
  }
38844
38850
  const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
38845
- const version = "0.2.36";
38851
+ const version = "0.2.37";
38846
38852
  const SlideApp = {
38847
38853
  kind: "Slide",
38848
38854
  setup(context) {