Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 280 if (typeof descriptor === 'object' && descriptor['code']) { | 280 if (typeof descriptor === 'object' && descriptor['code']) { |
| 281 var name = typeof descriptor['name'] === 'string' ? descriptor['name'] : k ey; | 281 var name = typeof descriptor['name'] === 'string' ? descriptor['name'] : k ey; |
| 282 UI.KeyboardShortcut.KeyBindings[name] = descriptor; | 282 UI.KeyboardShortcut.KeyBindings[name] = descriptor; |
| 283 } | 283 } |
| 284 } | 284 } |
| 285 })(); | 285 })(); |
| 286 | 286 |
| 287 | 287 |
| 288 /** @typedef {!{key: number, name: string}} */ | 288 /** @typedef {!{key: number, name: string}} */ |
| 289 UI.KeyboardShortcut.Descriptor; | 289 UI.KeyboardShortcut.Descriptor; |
| 290 | |
| 291 | |
| 292 UI.KeyboardShortcut.SelectAll = UI.KeyboardShortcut.makeKey('a', UI.KeyboardShor tcut.Modifiers.CtrlOrMeta); | |
|
luoe
2017/05/22 17:50:47
Added, no longer used:
https://chromium.googlesour
| |
| OLD | NEW |