@fileverse-dev/fortune-react 1.0.2-mod-97 → 1.0.2-mod-99

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/index.esm.js CHANGED
@@ -1564,7 +1564,9 @@ var InputBox = function InputBox() {
1564
1564
  if (!e) return;
1565
1565
  var kcode = e.keyCode;
1566
1566
  if (!kcode) return;
1567
- setShowCryptoModal(!document.getElementById("luckysheet-formula-search-c"));
1567
+ if (!document.getElementById("luckysheet-formula-search-c")) {
1568
+ setShowCryptoModal(!document.getElementById("luckysheet-formula-search-c"));
1569
+ }
1568
1570
  if (!(kcode >= 112 && kcode <= 123 || kcode <= 46 || kcode === 144 || kcode === 108 || e.ctrlKey || e.altKey || e.shiftKey && (kcode === 37 || kcode === 38 || kcode === 39 || kcode === 40)) || kcode === 8 || kcode === 32 || kcode === 46 || e.ctrlKey && kcode === 86) {
1569
1571
  setContext(function (draftCtx) {
1570
1572
  if ((draftCtx.formulaCache.rangestart || draftCtx.formulaCache.rangedrag_column_start || draftCtx.formulaCache.rangedrag_row_start || israngeseleciton(draftCtx)) && isBlur) return;
package/dist/index.js CHANGED
@@ -1574,7 +1574,9 @@ var InputBox = function InputBox() {
1574
1574
  if (!e) return;
1575
1575
  var kcode = e.keyCode;
1576
1576
  if (!kcode) return;
1577
- setShowCryptoModal(!document.getElementById("luckysheet-formula-search-c"));
1577
+ if (!document.getElementById("luckysheet-formula-search-c")) {
1578
+ setShowCryptoModal(!document.getElementById("luckysheet-formula-search-c"));
1579
+ }
1578
1580
  if (!(kcode >= 112 && kcode <= 123 || kcode <= 46 || kcode === 144 || kcode === 108 || e.ctrlKey || e.altKey || e.shiftKey && (kcode === 37 || kcode === 38 || kcode === 39 || kcode === 40)) || kcode === 8 || kcode === 32 || kcode === 46 || e.ctrlKey && kcode === 86) {
1579
1581
  setContext(function (draftCtx) {
1580
1582
  if ((draftCtx.formulaCache.rangestart || draftCtx.formulaCache.rangedrag_column_start || draftCtx.formulaCache.rangedrag_row_start || fortuneCore.israngeseleciton(draftCtx)) && isBlur) return;
package/dist/index.umd.js CHANGED
@@ -18604,37 +18604,10 @@
18604
18604
  return -1 * toNumber(number);
18605
18605
  }
18606
18606
 
18607
- function _typeof$1(o) {
18608
- "@babel/helpers - typeof";
18609
-
18610
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
18611
- return typeof o;
18612
- } : function (o) {
18613
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
18614
- }, _typeof$1(o);
18615
- }
18616
- function _defineProperty$1(e, r, t) {
18617
- return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
18618
- value: t,
18619
- enumerable: !0,
18620
- configurable: !0,
18621
- writable: !0
18622
- }) : e[r] = t, e;
18623
- }
18624
- function _toPropertyKey$1(t) {
18625
- var i = _toPrimitive$1(t, "string");
18626
- return "symbol" == _typeof$1(i) ? i : i + "";
18627
- }
18628
- function _toPrimitive$1(t, r) {
18629
- if ("object" != _typeof$1(t) || !t) return t;
18630
- var e = t[Symbol.toPrimitive];
18631
- if (void 0 !== e) {
18632
- var i = e.call(t, r || "default");
18633
- if ("object" != _typeof$1(i)) return i;
18634
- throw new TypeError("@@toPrimitive must return a primitive value.");
18635
- }
18636
- return ("string" === r ? String : Number)(t);
18637
- }
18607
+ function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
18608
+ function _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
18609
+ function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : i + ""; }
18610
+ function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
18638
18611
  var ERROR = "ERROR";
18639
18612
  var ERROR_DIV_ZERO = "DIV/0";
18640
18613
  var ERROR_NAME = "NAME";
@@ -38331,30 +38304,12 @@
38331
38304
  }
38332
38305
  func$c.SYMBOL = SYMBOL$c;
38333
38306
 
38334
- function _toConsumableArray$1(r) {
38335
- return _arrayWithoutHoles$1(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread$1();
38336
- }
38337
- function _nonIterableSpread$1() {
38338
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
38339
- }
38340
- function _unsupportedIterableToArray$1(r, a) {
38341
- if (r) {
38342
- if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
38343
- var t = {}.toString.call(r).slice(8, -1);
38344
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0;
38345
- }
38346
- }
38347
- function _iterableToArray$1(r) {
38348
- if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
38349
- }
38350
- function _arrayWithoutHoles$1(r) {
38351
- if (Array.isArray(r)) return _arrayLikeToArray$1(r);
38352
- }
38353
- function _arrayLikeToArray$1(r, a) {
38354
- (null == a || a > r.length) && (a = r.length);
38355
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
38356
- return n;
38357
- }
38307
+ function _toConsumableArray$1(r) { return _arrayWithoutHoles$1(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread$1(); }
38308
+ function _nonIterableSpread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
38309
+ function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
38310
+ function _iterableToArray$1(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
38311
+ function _arrayWithoutHoles$1(r) { if (Array.isArray(r)) return _arrayLikeToArray$1(r); }
38312
+ function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
38358
38313
  var availableOperators = Object.create(null);
38359
38314
 
38360
38315
  /**
@@ -39902,54 +39857,12 @@
39902
39857
  return string;
39903
39858
  }
39904
39859
 
39905
- function _slicedToArray$1(r, e) {
39906
- return _arrayWithHoles$1(r) || _iterableToArrayLimit$1(r, e) || _unsupportedIterableToArray$2(r, e) || _nonIterableRest$1();
39907
- }
39908
- function _nonIterableRest$1() {
39909
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
39910
- }
39911
- function _unsupportedIterableToArray$2(r, a) {
39912
- if (r) {
39913
- if ("string" == typeof r) return _arrayLikeToArray$2(r, a);
39914
- var t = {}.toString.call(r).slice(8, -1);
39915
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0;
39916
- }
39917
- }
39918
- function _arrayLikeToArray$2(r, a) {
39919
- (null == a || a > r.length) && (a = r.length);
39920
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
39921
- return n;
39922
- }
39923
- function _iterableToArrayLimit$1(r, l) {
39924
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
39925
- if (null != t) {
39926
- var e,
39927
- n,
39928
- i,
39929
- u,
39930
- a = [],
39931
- f = !0,
39932
- o = !1;
39933
- try {
39934
- if (i = (t = t.call(r)).next, 0 === l) {
39935
- if (Object(t) !== t) return;
39936
- f = !1;
39937
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
39938
- } catch (r) {
39939
- o = !0, n = r;
39940
- } finally {
39941
- try {
39942
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
39943
- } finally {
39944
- if (o) throw n;
39945
- }
39946
- }
39947
- return a;
39948
- }
39949
- }
39950
- function _arrayWithHoles$1(r) {
39951
- if (Array.isArray(r)) return r;
39952
- }
39860
+ function _slicedToArray$1(r, e) { return _arrayWithHoles$1(r) || _iterableToArrayLimit$1(r, e) || _unsupportedIterableToArray$2(r, e) || _nonIterableRest$1(); }
39861
+ function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39862
+ function _unsupportedIterableToArray$2(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$2(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0; } }
39863
+ function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
39864
+ function _iterableToArrayLimit$1(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
39865
+ function _arrayWithHoles$1(r) { if (Array.isArray(r)) return r; }
39953
39866
  /**
39954
39867
  * Convert row label to index.
39955
39868
  *
@@ -40062,133 +39975,25 @@
40062
39975
  return columnLabel + rowLabel;
40063
39976
  }
40064
39977
 
40065
- function _typeof$2(o) {
40066
- "@babel/helpers - typeof";
40067
-
40068
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
40069
- return typeof o;
40070
- } : function (o) {
40071
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
40072
- }, _typeof$2(o);
40073
- }
40074
- function _slicedToArray$2(r, e) {
40075
- return _arrayWithHoles$2(r) || _iterableToArrayLimit$2(r, e) || _unsupportedIterableToArray$3(r, e) || _nonIterableRest$2();
40076
- }
40077
- function _nonIterableRest$2() {
40078
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
40079
- }
40080
- function _unsupportedIterableToArray$3(r, a) {
40081
- if (r) {
40082
- if ("string" == typeof r) return _arrayLikeToArray$3(r, a);
40083
- var t = {}.toString.call(r).slice(8, -1);
40084
- return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0;
40085
- }
40086
- }
40087
- function _arrayLikeToArray$3(r, a) {
40088
- (null == a || a > r.length) && (a = r.length);
40089
- for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
40090
- return n;
40091
- }
40092
- function _iterableToArrayLimit$2(r, l) {
40093
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
40094
- if (null != t) {
40095
- var e,
40096
- n,
40097
- i,
40098
- u,
40099
- a = [],
40100
- f = !0,
40101
- o = !1;
40102
- try {
40103
- if (i = (t = t.call(r)).next, 0 === l) {
40104
- if (Object(t) !== t) return;
40105
- f = !1;
40106
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
40107
- } catch (r) {
40108
- o = !0, n = r;
40109
- } finally {
40110
- try {
40111
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
40112
- } finally {
40113
- if (o) throw n;
40114
- }
40115
- }
40116
- return a;
40117
- }
40118
- }
40119
- function _arrayWithHoles$2(r) {
40120
- if (Array.isArray(r)) return r;
40121
- }
40122
- function _classCallCheck(a, n) {
40123
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
40124
- }
40125
- function _defineProperties(e, r) {
40126
- for (var t = 0; t < r.length; t++) {
40127
- var o = r[t];
40128
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$2(o.key), o);
40129
- }
40130
- }
40131
- function _createClass(e, r, t) {
40132
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
40133
- writable: !1
40134
- }), e;
40135
- }
40136
- function _toPropertyKey$2(t) {
40137
- var i = _toPrimitive$2(t, "string");
40138
- return "symbol" == _typeof$2(i) ? i : i + "";
40139
- }
40140
- function _toPrimitive$2(t, r) {
40141
- if ("object" != _typeof$2(t) || !t) return t;
40142
- var e = t[Symbol.toPrimitive];
40143
- if (void 0 !== e) {
40144
- var i = e.call(t, r || "default");
40145
- if ("object" != _typeof$2(i)) return i;
40146
- throw new TypeError("@@toPrimitive must return a primitive value.");
40147
- }
40148
- return ("string" === r ? String : Number)(t);
40149
- }
40150
- function _callSuper(t, o, e) {
40151
- return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
40152
- }
40153
- function _possibleConstructorReturn(t, e) {
40154
- if (e && ("object" == _typeof$2(e) || "function" == typeof e)) return e;
40155
- if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
40156
- return _assertThisInitialized(t);
40157
- }
40158
- function _assertThisInitialized(e) {
40159
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
40160
- return e;
40161
- }
40162
- function _isNativeReflectConstruct() {
40163
- try {
40164
- var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
40165
- } catch (t) {}
40166
- return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
40167
- return !!t;
40168
- })();
40169
- }
40170
- function _getPrototypeOf(t) {
40171
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
40172
- return t.__proto__ || Object.getPrototypeOf(t);
40173
- }, _getPrototypeOf(t);
40174
- }
40175
- function _inherits(t, e) {
40176
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
40177
- t.prototype = Object.create(e && e.prototype, {
40178
- constructor: {
40179
- value: t,
40180
- writable: !0,
40181
- configurable: !0
40182
- }
40183
- }), Object.defineProperty(t, "prototype", {
40184
- writable: !1
40185
- }), e && _setPrototypeOf(t, e);
40186
- }
40187
- function _setPrototypeOf(t, e) {
40188
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
40189
- return t.__proto__ = e, t;
40190
- }, _setPrototypeOf(t, e);
40191
- }
39978
+ function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
39979
+ function _slicedToArray$2(r, e) { return _arrayWithHoles$2(r) || _iterableToArrayLimit$2(r, e) || _unsupportedIterableToArray$3(r, e) || _nonIterableRest$2(); }
39980
+ function _nonIterableRest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39981
+ function _unsupportedIterableToArray$3(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$3(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0; } }
39982
+ function _arrayLikeToArray$3(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
39983
+ function _iterableToArrayLimit$2(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
39984
+ function _arrayWithHoles$2(r) { if (Array.isArray(r)) return r; }
39985
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
39986
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$2(o.key), o); } }
39987
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
39988
+ function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$2(i) ? i : i + ""; }
39989
+ function _toPrimitive$2(t, r) { if ("object" != _typeof$2(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$2(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
39990
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
39991
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof$2(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
39992
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
39993
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
39994
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
39995
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
39996
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
40192
39997
 
40193
39998
  /**
40194
39999
  * @class Parser
@@ -106168,7 +105973,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
106168
105973
  if (!e) return;
106169
105974
  var kcode = e.keyCode;
106170
105975
  if (!kcode) return;
106171
- setShowCryptoModal(!document.getElementById("luckysheet-formula-search-c"));
105976
+ if (!document.getElementById("luckysheet-formula-search-c")) {
105977
+ setShowCryptoModal(!document.getElementById("luckysheet-formula-search-c"));
105978
+ }
106172
105979
  if (!(kcode >= 112 && kcode <= 123 || kcode <= 46 || kcode === 144 || kcode === 108 || e.ctrlKey || e.altKey || e.shiftKey && (kcode === 37 || kcode === 38 || kcode === 39 || kcode === 40)) || kcode === 8 || kcode === 32 || kcode === 46 || e.ctrlKey && kcode === 86) {
106173
105980
  setContext(function (draftCtx) {
106174
105981
  if ((draftCtx.formulaCache.rangestart || draftCtx.formulaCache.rangedrag_column_start || draftCtx.formulaCache.rangedrag_row_start || israngeseleciton(draftCtx)) && isBlur) return;