OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html i18n-values="dir:textdirection"> | 2 <html i18n-values="dir:textdirection"> |
3 <!-- | 3 <!-- |
4 | 4 |
5 Copyright (c) 2010 The Chromium Authors. All rights reserved. | 5 Copyright (c) 2010 The Chromium Authors. All rights reserved. |
6 Use of this source code is governed by a BSD-style license that can be | 6 Use of this source code is governed by a BSD-style license that can be |
7 found in the LICENSE file. | 7 found in the LICENSE file. |
8 | 8 |
9 --> | 9 --> |
10 <head> | 10 <head> |
(...skipping 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1538 case 'add-new-bookmark-command': | 1538 case 'add-new-bookmark-command': |
1539 addPage(); | 1539 addPage(); |
1540 break; | 1540 break; |
1541 case 'activate-command': | 1541 case 'activate-command': |
1542 openItem(); | 1542 openItem(); |
1543 break; | 1543 break; |
1544 } | 1544 } |
1545 } | 1545 } |
1546 | 1546 |
1547 // Delete on all platforms. On Mac we also allow Meta+Backspace. | 1547 // Delete on all platforms. On Mac we also allow Meta+Backspace. |
1548 $('delete-command').shortcut = 'U+007F' + (cr.isMac ? ' U+0008-meta' : ''); | 1548 $('delete-command').shortcut = 'U+007F' + |
| 1549 (cr.isMac ? ' U+0008 U+0008-meta' : ''); |
1549 | 1550 |
1550 // Enter on all platforms. Mac we also support space and Command-Down !?! | 1551 // Enter on all platforms. Mac we also support space and Command-Down !?! |
1551 $('activate-command').shortcut = 'Enter' + | 1552 $('activate-command').shortcut = 'Enter' + |
1552 (cr.isMac ? ' U+0020 Down-meta' : ''); | 1553 (cr.isMac ? ' U+0020 Down-meta' : ''); |
1553 if (!cr.isMac) { | 1554 if (!cr.isMac) { |
1554 $('rename-folder-command').shortcut = 'F2'; | 1555 $('rename-folder-command').shortcut = 'F2'; |
1555 $('edit-command').shortcut = 'F2'; | 1556 $('edit-command').shortcut = 'F2'; |
1556 } | 1557 } |
1557 | 1558 |
1558 list.addEventListener('command', handleCommand); | 1559 list.addEventListener('command', handleCommand); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1600 localStrings.templateData = data; | 1601 localStrings.templateData = data; |
1601 i18nTemplate.process(document, data); | 1602 i18nTemplate.process(document, data); |
1602 }); | 1603 }); |
1603 | 1604 |
1604 </script> | 1605 </script> |
1605 | 1606 |
1606 <div id="drop-overlay"></div> | 1607 <div id="drop-overlay"></div> |
1607 | 1608 |
1608 </body> | 1609 </body> |
1609 </html> | 1610 </html> |
OLD | NEW |