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

Side by Side Diff: chrome/browser/resources/md_downloads/crisper.js

Issue 2140853003: Fix keyboard commands on bookmarks page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/bookmark_manager/js/main.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Assertion support. 6 * @fileoverview Assertion support.
7 */ 7 */
8 8
9 /** 9 /**
10 * Verify |condition| is truthy and return |condition| if so. 10 * Verify |condition| is truthy and return |condition| if so.
(...skipping 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after
1692 1692
1693 this._notifyingDescendant = true; 1693 this._notifyingDescendant = true;
1694 descendant.notifyResize(); 1694 descendant.notifyResize();
1695 this._notifyingDescendant = false; 1695 this._notifyingDescendant = false;
1696 } 1696 }
1697 }; 1697 };
1698 (function() { 1698 (function() {
1699 'use strict'; 1699 'use strict';
1700 1700
1701 /** 1701 /**
1702 * Chrome uses an older version of DOM Level 3 Keyboard Events
Dan Beam 2016/07/12 19:59:30 this is just gonna get replaced the next time we v
1703 *
1704 * Most keys are labeled as text, but some are Unicode codepoints.
1705 * Values taken from: http://www.w3.org/TR/2007/WD-DOM-Level-3-Events-200712 21/keyset.html#KeySet-Set
1706 */
1707 var KEY_IDENTIFIER = {
1708 'U+0008': 'backspace',
1709 'U+0009': 'tab',
1710 'U+001B': 'esc',
1711 'U+0020': 'space',
1712 'U+007F': 'del'
1713 };
1714
1715 /**
1716 * Special table for KeyboardEvent.keyCode. 1702 * Special table for KeyboardEvent.keyCode.
1717 * KeyBoardEvent.key is even better than that. 1703 * KeyBoardEvent.key is even better than that.
1718 * 1704 *
1719 * Values from: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEve nt.keyCode#Value_of_keyCode 1705 * Values from: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEve nt.keyCode#Value_of_keyCode
1720 */ 1706 */
1721 var KEY_CODE = { 1707 var KEY_CODE = {
1722 8: 'backspace', 1708 8: 'backspace',
1723 9: 'tab', 1709 9: 'tab',
1724 13: 'enter', 1710 13: 'enter',
1725 27: 'esc', 1711 27: 'esc',
(...skipping 9792 matching lines...) Expand 10 before | Expand all | Expand 10 after
11518 Manager.get().updateItem_(index, data); 11504 Manager.get().updateItem_(index, data);
11519 }; 11505 };
11520 11506
11521 return {Manager: Manager}; 11507 return {Manager: Manager};
11522 }); 11508 });
11523 // Copyright 2015 The Chromium Authors. All rights reserved. 11509 // Copyright 2015 The Chromium Authors. All rights reserved.
11524 // Use of this source code is governed by a BSD-style license that can be 11510 // Use of this source code is governed by a BSD-style license that can be
11525 // found in the LICENSE file. 11511 // found in the LICENSE file.
11526 11512
11527 window.addEventListener('load', downloads.Manager.onLoad); 11513 window.addEventListener('load', downloads.Manager.onLoad);
OLDNEW
« no previous file with comments | « chrome/browser/resources/bookmark_manager/js/main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698