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:
Vipin Chaudhary 2025-02-08 20:54:23 +05:30 committed by GitHub
parent feb88e64a4
commit 14083ea7da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 71 additions and 63 deletions

View file

@ -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 }) => {