| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 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 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 return; | 732 return; |
| 733 var consoleGroupViewMessage = groupMessage.parentElement.message; | 733 var consoleGroupViewMessage = groupMessage.parentElement.message; |
| 734 consoleGroupViewMessage.setCollapsed(!consoleGroupViewMessage.collapsed()); | 734 consoleGroupViewMessage.setCollapsed(!consoleGroupViewMessage.collapsed()); |
| 735 this._updateMessageList(); | 735 this._updateMessageList(); |
| 736 } | 736 } |
| 737 | 737 |
| 738 _registerShortcuts() { | 738 _registerShortcuts() { |
| 739 this._shortcuts = {}; | 739 this._shortcuts = {}; |
| 740 | 740 |
| 741 var shortcut = UI.KeyboardShortcut; | 741 var shortcut = UI.KeyboardShortcut; |
| 742 var section = Components.shortcutsScreen.section(Common.UIString('Console'))
; | 742 var section = UI.shortcutsScreen.section(Common.UIString('Console')); |
| 743 | 743 |
| 744 var shortcutL = shortcut.makeDescriptor('l', UI.KeyboardShortcut.Modifiers.C
trl); | 744 var shortcutL = shortcut.makeDescriptor('l', UI.KeyboardShortcut.Modifiers.C
trl); |
| 745 var keys = [shortcutL]; | 745 var keys = [shortcutL]; |
| 746 if (Host.isMac()) { | 746 if (Host.isMac()) { |
| 747 var shortcutK = shortcut.makeDescriptor('k', UI.KeyboardShortcut.Modifiers
.Meta); | 747 var shortcutK = shortcut.makeDescriptor('k', UI.KeyboardShortcut.Modifiers
.Meta); |
| 748 keys.unshift(shortcutK); | 748 keys.unshift(shortcutK); |
| 749 } | 749 } |
| 750 section.addAlternateKeys(keys, Common.UIString('Clear console')); | 750 section.addAlternateKeys(keys, Common.UIString('Clear console')); |
| 751 | 751 |
| 752 keys = [shortcut.makeDescriptor(shortcut.Keys.Tab), shortcut.makeDescriptor(
shortcut.Keys.Right)]; | 752 keys = [shortcut.makeDescriptor(shortcut.Keys.Tab), shortcut.makeDescriptor(
shortcut.Keys.Right)]; |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1336 return true; | 1336 return true; |
| 1337 } | 1337 } |
| 1338 return false; | 1338 return false; |
| 1339 } | 1339 } |
| 1340 }; | 1340 }; |
| 1341 | 1341 |
| 1342 /** | 1342 /** |
| 1343 * @typedef {{messageIndex: number, matchIndex: number}} | 1343 * @typedef {{messageIndex: number, matchIndex: number}} |
| 1344 */ | 1344 */ |
| 1345 Console.ConsoleView.RegexMatchRange; | 1345 Console.ConsoleView.RegexMatchRange; |
| OLD | NEW |