fix: handle shift tab tab-index focus (#6554)
* handle shift tab tab-index focus * add comment * fix double tap * make label focus * fix title focus * focus discard and save * remove comment
This commit is contained in:
parent
feb88e64a4
commit
14083ea7da
9 changed files with 71 additions and 63 deletions
|
|
@ -51,6 +51,10 @@ export const ListKeymap = ({ tabIndex }: { tabIndex?: number }) =>
|
|||
} else if (this.editor.commands.liftListItem("taskItem")) {
|
||||
return true;
|
||||
}
|
||||
// if tabIndex is set, we don't want to handle Tab key
|
||||
if (tabIndex !== undefined && tabIndex !== null) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
Delete: ({ editor }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue