Skip to content

Get rid of keyboard trap#255

Merged
pharret31 merged 3 commits into
masterfrom
feature/26_2_htmleditor-keyboard-trap
Jul 21, 2026
Merged

Get rid of keyboard trap#255
pharret31 merged 3 commits into
masterfrom
feature/26_2_htmleditor-keyboard-trap

Conversation

@pharret31

Copy link
Copy Markdown

No description provided.

@pharret31 pharret31 self-assigned this Jul 20, 2026
Comment thread modules/keyboard.js
const { format } = context;
const isInTable = format.tableCellLine || format.tableHeaderCellLine
|| format.tableHeaderCell || format.table;
|| format.tableHeaderCell || format.table;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space here

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually better to add extra spaces here to visually connect the line with the previous one

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the monorepo we have other lint rules, it seems we should follow the same code style everywhere. Ok, if you insist we can leave it as is. Let's discuss linter rules later.

Comment thread modules/keyboard.js Outdated
Comment thread modules/keyboard.js
tab: {
key: 'tab',
handler(range, { format }) {
handler(range, context) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could leave destructurisation still here: { format }

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be less obvious if I do destructuring here, I'd prefer to do destructuring inside the body

@pharret31
pharret31 merged commit 4e053c2 into master Jul 21, 2026
10 checks passed
@pharret31
pharret31 deleted the feature/26_2_htmleditor-keyboard-trap branch July 21, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants