Skip to content

Commit 7f3e0ae

Browse files
Add autofocus to non-form OK buttons.
This means they can be activated with Enter (forms already respond to Enter via the "submit" event). BUG=126191 TEST=Manual Review URL: https://chromiumcodereview.appspot.com/10375003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135247 0039d316-1c4b-4281-b951-d872f2087c98
1 parent 41c6dfb commit 7f3e0ae

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

remoting/webapp/main.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,21 +239,26 @@ <h2 i18n-content="MODE_ME2ME"></h2>
239239
<div id="host-setup-done-message-2" class="message"></div>
240240
<div class="button-row">
241241
<div class="box-spacer"></div>
242-
<button id="host-config-done-dismiss" i18n-content="OK"></button>
242+
<button id="host-config-done-dismiss"
243+
autofocus="autofocus"
244+
i18n-content="OK"></button>
243245
</div>
244246
</div>
245247
<div data-ui-mode="home.host-setup.error" hidden>
246248
<div id="host-setup-error-message" class="error-state"></div>
247249
<div class="button-row">
248250
<div class="box-spacer"></div>
249-
<button id="host-config-error-dismiss" i18n-content="OK"></button>
251+
<button id="host-config-error-dismiss"
252+
autofocus="autofocus"
253+
i18n-content="OK"></button>
250254
</div>
251255
</div>
252256
<div data-ui-mode="home.host-setup.install" hidden>
253257
<div class="message" i18n-content="HOST_SETUP_INSTALL"></div>
254258
<div class="button-row">
255259
<div class="box-spacer"></div>
256260
<button id="host-config-install-continue"
261+
autofocus="autofocus"
257262
i18n-content="OK"></button>
258263
<button id="host-config-install-dismiss"
259264
i18n-content="CANCEL"></button>
@@ -265,6 +270,7 @@ <h2 i18n-content="MODE_ME2ME"></h2>
265270
<div class="button-row">
266271
<div class="box-spacer"></div>
267272
<button id="host-config-install-retry"
273+
autofocus="autofocus"
268274
i18n-content="OK"></button>
269275
</div>
270276
</div>
@@ -278,6 +284,7 @@ <h2 i18n-content="MODE_AUTHORIZE"></h2>
278284
<div class="centered">
279285
<button id="auth-button"
280286
type="button"
287+
autofocus="autofocus"
281288
i18n-content="CONTINUE_BUTTON">
282289
</button>
283290
</div>
@@ -492,6 +499,7 @@ <h2 i18n-content="CONNECTION_HISTORY_TITLE"></h2>
492499
</button>
493500
<button id="cancel-host-delete"
494501
i18n-content="CANCEL"
502+
autofocus="autofocus"
495503
type="button">
496504
</button>
497505
</div>

0 commit comments

Comments
 (0)