mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-08 12:53:45 +08:00
DevTools: Focus the add workspace button by default
Bug: 759491 Change-Id: I4dc8f3a1971964a2b301c4ca3c4e438e9d84ee27 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1513208 Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Commit-Queue: Joel Einbinder <einbinder@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#640176} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: adc0e9be5563cee7dc975f4d3ae866098431fed7
This commit is contained in:
committed by
Commit Bot
parent
a86c14edda
commit
4b9d350ecb
@@ -29,8 +29,9 @@ Persistence.WorkspaceSettingsTab = class extends UI.VBox {
|
||||
|
||||
this._fileSystemsListContainer = this.containerElement.createChild('div', '');
|
||||
|
||||
this.containerElement.appendChild(
|
||||
UI.createTextButton(Common.UIString('Add folder\u2026'), this._addFileSystemClicked.bind(this)));
|
||||
const addButton = UI.createTextButton(ls`Add folder\u2026`, this._addFileSystemClicked.bind(this));
|
||||
this.containerElement.appendChild(addButton);
|
||||
this.setDefaultFocusedElement(addButton);
|
||||
|
||||
/** @type {!Map<string, !Element>} */
|
||||
this._elementByPath = new Map();
|
||||
|
||||
Reference in New Issue
Block a user