@lvce-editor/find-widget-worker 3.7.1 → 3.7.3

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.
@@ -1088,6 +1088,7 @@ const create = (uid, x, y, width, height, parentUid) => {
1088
1088
  focus: 0,
1089
1089
  focused: false,
1090
1090
  focusSource: Unknown,
1091
+ focusVersion: 0,
1091
1092
  height: 0,
1092
1093
  history: [],
1093
1094
  inputBorderWidth: 1,
@@ -1135,7 +1136,7 @@ const isEqual$6 = (oldState, newState) => {
1135
1136
  };
1136
1137
 
1137
1138
  const isEqual$5 = (oldState, newState) => {
1138
- return oldState.focused === newState.focused && oldState.focus === newState.focus;
1139
+ return oldState.focused === newState.focused && oldState.focus === newState.focus && oldState.focusVersion === newState.focusVersion;
1139
1140
  };
1140
1141
 
1141
1142
  const isEqual$4 = (oldState, newState) => {
@@ -1217,7 +1218,11 @@ const focusCloseButton = state => {
1217
1218
  };
1218
1219
 
1219
1220
  const focusFind = state => {
1220
- return setFindWidgetFocus(state, FindWidget$1);
1221
+ const newState = setFindWidgetFocus(state, FocusSearchInput);
1222
+ return {
1223
+ ...newState,
1224
+ focusVersion: state.focusVersion + 1
1225
+ };
1221
1226
  };
1222
1227
 
1223
1228
  const setSelections = async (editorUid, selections) => {
@@ -1959,6 +1964,10 @@ const getKeyBindings = () => {
1959
1964
  command: 'FindWidget.focusNext',
1960
1965
  key: Enter,
1961
1966
  when: FocusFindWidget$1
1967
+ }, {
1968
+ command: 'FindWidget.focusPrevious',
1969
+ key: Shift | Enter,
1970
+ when: FocusFindWidget$1
1962
1971
  }, {
1963
1972
  command: 'FindWidget.preventDefaultBrowserFind',
1964
1973
  key: CtrlCmd | KeyF,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/find-widget-worker",
3
- "version": "3.7.1",
3
+ "version": "3.7.3",
4
4
  "description": "Web Worker for the find widget in Lvce Editor",
5
5
  "repository": {
6
6
  "type": "git",