Skip to content

Commit 0496f9c

Browse files
committed
enable left/right native event on input number field
1 parent 6b8d573 commit 0496f9c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/block-editor/src/components/writing-flow/use-arrow-nav.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export function isNavigationCandidate( element, keyCode, hasModifier ) {
5757
const simpleInputTypes = [
5858
'button',
5959
'checkbox',
60+
'number',
6061
'color',
6162
'file',
6263
'image',

packages/e2e-tests/specs/editor/various/toolbar-roving-tabindex.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,7 @@ describe( 'Toolbar roving tabindex', () => {
101101

102102
it( 'ensures table block toolbar uses roving tabindex', async () => {
103103
await insertBlock( 'Table' );
104-
// Focus "Create Table" button in advance because the block wrapper doesn't get
105-
// focus when Up Arrow is pressed in input number field.
106-
await page.keyboard.press( 'Tab' );
107-
await page.keyboard.press( 'Tab' );
104+
await page.keyboard.press( 'ArrowLeft' );
108105
await testBlockToolbarKeyboardNavigation( 'Block: Table', 'Table' );
109106
// Move focus to the first toolbar item.
110107
await page.keyboard.press( 'Home' );

0 commit comments

Comments
 (0)