Skip to content

Commit

Permalink
Update the speak messages when switching editor modes (WordPress#66278)
Browse files Browse the repository at this point in the history
Co-authored-by: ntsekouras <[email protected]>
Co-authored-by: afercia <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: PARTHVATALIYA <[email protected]>
  • Loading branch information
5 people authored and karthick-murugan committed Nov 13, 2024
1 parent abe9529 commit f936033
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/block-editor/src/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1673,17 +1673,9 @@ export const __unstableSetEditorMode =
registry.dispatch( preferencesStore ).set( 'core', 'editorTool', mode );

if ( mode === 'navigation' ) {
speak(
__(
'You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.'
)
);
speak( __( 'You are currently in Write mode.' ) );
} else if ( mode === 'edit' ) {
speak(
__(
'You are currently in edit mode. To return to the navigation mode, press Escape.'
)
);
speak( __( 'You are currently in Design mode.' ) );
}
};

Expand Down

0 comments on commit f936033

Please sign in to comment.