Skip to content

Commit

Permalink
manager.Focus: increase maxFocusInOutGap from 10ms to 50ms #6162
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiu committed Dec 18, 2024
1 parent 8378068 commit 2881dd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/manager/Focus.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class Focus extends CoreBase {
/**
* The amount of time for a focusIn to occur after the last focusOut
* to get combined into a focusmove event.
* @member {Number} maxFocusInOutGap=30
* @member {Number} maxFocusInOutGap=50
*/
maxFocusInOutGap: 30,
maxFocusInOutGap: 50,
/**
* The maximum amount of items stored inside the history array
* @member {Number} maxHistoryLength=20
Expand Down
6 changes: 5 additions & 1 deletion src/table/plugin/CellEditing.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ class CellEditing extends Plugin {
editor = me.editors[dataField];

if (me.mountedEditor) {
await me.unmountEditor()
await me.unmountEditor();
await me.timeout(10)
}

if (!column.editable) {
Expand Down Expand Up @@ -134,6 +135,9 @@ class CellEditing extends Plugin {
view.updateDepth = -1;

await view.promiseUpdate();

await me.timeout(10);

editor.focus()
}

Expand Down

0 comments on commit 2881dd1

Please sign in to comment.