e.editor.toolbar.executeButton.label") ), this.renderEvaluationContextSelector(), dom.button({ className: "devtools-button webconsole-editor-toolbar-prettyPrintButton", title: l10n.getStr( "webconsole.editor.toolbar.prettyPrintButton.tooltip" ), onClick: () => dispatch(actions.prettyPrintEditor()), }), dom.div({ className: "devtools-separator webconsole-editor-toolbar-prettyPrintSeparator", }), dom.button({ className: "devtools-button webconsole-editor-toolbar-history-prevExpressionButton", title: l10n.getStr( "webconsole.editor.toolbar.history.prevExpressionButton.tooltip" ), onClick: () => { webConsoleUI.jsterm.historyPeruse(HISTORY_BACK); }, }), dom.button({ className: "devtools-button webconsole-editor-toolbar-history-nextExpressionButton", title: l10n.getStr( "webconsole.editor.toolbar.history.nextExpressionButton.tooltip" ), onClick: () => { webConsoleUI.jsterm.historyPeruse(HISTORY_FORWARD); }, }), dom.button({ className: `devtools-button webconsole-editor-toolbar-reverseSearchButton ${ reverseSearchInputVisible ? "checked" : "" }`, title: reverseSearchInputVisible ? l10n.getFormatStr( "webconsole.editor.toolbar.reverseSearchButton.closeReverseSearch.tooltip", ["Esc" + (isMacOS ? " | Ctrl + C" : "")] ) : l10n.getFormatStr( "webconsole.editor.toolbar.reverseSearchButton.openReverseSearch.tooltip", [isMacOS ? "Ctrl + R" : "F9"] ), onClick: this.onReverseSearchButtonClick, }), dom.div({ className: "devtools-separator webconsole-editor-toolbar-historyNavSeparator", }), dom.button({ className: "devtools-button webconsole-editor-toolbar-closeButton", title: l10n.getFormatStr( "webconsole.editor.toolbar.closeButton.tooltip2", [isMacOS ? "Cmd + B" : "Ctrl + B"] ), onClick: () => dispatch(actions.editorToggle()), }) ); } } module.exports = EditorToolbar; PK