Skip to content

Commit 90c92f5

Browse files
authored
Merge pull request #3528 from processing/vpat-updates-2
temp esc editor key, update open/close file menu aria label
2 parents 7200584 + 01fa2a7 commit 90c92f5

File tree

1 file changed

+5
-2
lines changed
  • client/modules/IDE/components/Editor

1 file changed

+5
-2
lines changed

client/modules/IDE/components/Editor/index.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ class Editor extends React.Component {
169169
},
170170
Enter: 'emmetInsertLineBreak',
171171
Esc: 'emmetResetAbbreviation',
172+
[`Shift-${metaKey}-E`]: (cm) => {
173+
cm.getInputField().blur();
174+
},
172175
[`Shift-Tab`]: false,
173176
[`${metaKey}-Enter`]: () => null,
174177
[`Shift-${metaKey}-Enter`]: () => null,
@@ -552,7 +555,7 @@ class Editor extends React.Component {
552555
<section className={editorSectionClass}>
553556
<div className="editor__header">
554557
<button
555-
aria-label={this.props.t('Editor.OpenSketchARIA')}
558+
aria-label={this.props.t('Editor.CloseSketchARIA')}
556559
className="sidebar__contract"
557560
onClick={() => {
558561
this.props.collapseSidebar();
@@ -562,7 +565,7 @@ class Editor extends React.Component {
562565
<LeftArrowIcon focusable="false" aria-hidden="true" />
563566
</button>
564567
<button
565-
aria-label={this.props.t('Editor.CloseSketchARIA')}
568+
aria-label={this.props.t('Editor.OpenSketchARIA')}
566569
className="sidebar__expand"
567570
onClick={this.props.expandSidebar}
568571
>

0 commit comments

Comments
 (0)