jodit-pro-react 5.5.80 → 5.5.81

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  JoditEditor_default
3
- } from "./chunk-E2AZLYYJ.mjs";
3
+ } from "./chunk-LJXVGTZ7.mjs";
4
4
  export {
5
5
  JoditEditor_default as default
6
6
  };
@@ -193,7 +193,7 @@ var APP_VERSION, ES, IS_ES_MODERN, IS_ES_NEXT, IS_PROD, IS_TEST, FAT_MODE, HOMEP
193
193
  var init_constants = __esm({
194
194
  "node_modules/jodit/esm/core/constants.js"() {
195
195
  "use strict";
196
- APP_VERSION = "4.13.19";
196
+ APP_VERSION = "4.13.20";
197
197
  ES = "es2020";
198
198
  IS_ES_MODERN = true;
199
199
  IS_ES_NEXT = true;
@@ -28587,10 +28587,20 @@ var UISearch = class UISearch2 extends UIElement {
28587
28587
  this.replaceButton = replaceBtn;
28588
28588
  this.currentBox = current;
28589
28589
  this.countBox = count;
28590
+ const closeAction = () => this.close();
28591
+ const replaceAction = () => void jodit.e.fire(this, "pressReplaceButton");
28592
+ const nextAction = () => void jodit.e.fire("searchNext");
28593
+ const prevAction = () => void jodit.e.fire("searchPrevious");
28594
+ const onKeyboardActivate = (action) => (e42) => {
28595
+ if (!e42.detail) {
28596
+ e42.preventDefault();
28597
+ action();
28598
+ }
28599
+ };
28590
28600
  jodit.e.on(this.closeButton, "pointerdown", () => {
28591
- this.close();
28601
+ closeAction();
28592
28602
  return false;
28593
- }).on(this.queryInput, "input", () => {
28603
+ }).on(this.closeButton, "click", onKeyboardActivate(closeAction)).on(this.queryInput, "input", () => {
28594
28604
  this.currentIndex = 0;
28595
28605
  }).on(this.queryInput, "pointerdown", () => {
28596
28606
  if (jodit.s.isFocused()) {
@@ -28598,15 +28608,15 @@ var UISearch = class UISearch2 extends UIElement {
28598
28608
  this.selInfo = jodit.s.save();
28599
28609
  }
28600
28610
  }).on(this.replaceButton, "pointerdown", () => {
28601
- jodit.e.fire(this, "pressReplaceButton");
28611
+ replaceAction();
28602
28612
  return false;
28603
- }).on(next, "pointerdown", () => {
28604
- void jodit.e.fire("searchNext");
28613
+ }).on(this.replaceButton, "click", onKeyboardActivate(replaceAction)).on(next, "pointerdown", () => {
28614
+ nextAction();
28605
28615
  return false;
28606
- }).on(prev, "pointerdown", () => {
28607
- jodit.e.fire("searchPrevious");
28616
+ }).on(next, "click", onKeyboardActivate(nextAction)).on(prev, "pointerdown", () => {
28617
+ prevAction();
28608
28618
  return false;
28609
- }).on(this.queryInput, "input", () => {
28619
+ }).on(prev, "click", onKeyboardActivate(prevAction)).on(this.queryInput, "input", () => {
28610
28620
  this.setMod("empty-query", !trim(this.queryInput.value).length);
28611
28621
  }).on(this.queryInput, "keydown", (() => {
28612
28622
  const debounced = this.j.async.debounce((e42) => __async(this, null, function* () {
@@ -2,7 +2,7 @@ import {
2
2
  Config,
3
3
  JoditEditor_default,
4
4
  n
5
- } from "./chunk-E2AZLYYJ.mjs";
5
+ } from "./chunk-LJXVGTZ7.mjs";
6
6
 
7
7
  // src/index.ts
8
8
  var index_default = JoditEditor_default;