Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: chrome/browser/resources/print_preview/margin_textbox.js

Issue 8394020: Print Preview: Improving accessibility of margins UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/print_preview/margin_textbox.js
diff --git a/chrome/browser/resources/print_preview/margin_textbox.js b/chrome/browser/resources/print_preview/margin_textbox.js
index ec1944bec48dec9dcfa3de8b194a036613d20646..010e9c7fd294d4f96fc217b64770704f6e238e96 100644
--- a/chrome/browser/resources/print_preview/margin_textbox.js
+++ b/chrome/browser/resources/print_preview/margin_textbox.js
@@ -134,6 +134,9 @@ cr.define('print_preview', function() {
this.onblur = this.onBlur_.bind(this);
this.onkeypress = this.onKeyPressed_.bind(this);
this.onkeyup = this.onKeyUp_.bind(this);
+ this.onfocus = function() {
+ cr.dispatchSimpleEvent(document, 'marginTextboxFocused');
+ };
},
/**
« no previous file with comments | « chrome/browser/resources/print_preview/margin_settings.js ('k') | chrome/browser/resources/print_preview/margins.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698