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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 section.addKey(shortcut.makeDescriptor(shortcut.Keys.Enter), WebInspecto
r.UIString("Execute command")); | 763 section.addKey(shortcut.makeDescriptor(shortcut.Keys.Enter), WebInspecto
r.UIString("Execute command")); |
764 }, | 764 }, |
765 | 765 |
766 _clearPromptBackwards: function() | 766 _clearPromptBackwards: function() |
767 { | 767 { |
768 this._prompt.setText(""); | 768 this._prompt.setText(""); |
769 }, | 769 }, |
770 | 770 |
771 _promptKeyDown: function(event) | 771 _promptKeyDown: function(event) |
772 { | 772 { |
773 this._updateStickToBottomOnWheel(); | 773 if (event.key === "PageUp") { |
774 if (isEnterKey(event)) { | 774 this._updateStickToBottomOnWheel(); |
| 775 return; |
| 776 } else if (isEnterKey(event)) { |
775 this._enterKeyPressed(event); | 777 this._enterKeyPressed(event); |
776 return; | 778 return; |
777 } | 779 } |
778 | 780 |
779 var shortcut = WebInspector.KeyboardShortcut.makeKeyFromEvent(event); | 781 var shortcut = WebInspector.KeyboardShortcut.makeKeyFromEvent(event); |
780 var handler = this._shortcuts[shortcut]; | 782 var handler = this._shortcuts[shortcut]; |
781 if (handler) { | 783 if (handler) { |
782 handler(); | 784 handler(); |
783 event.preventDefault(); | 785 event.preventDefault(); |
784 } | 786 } |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1410 return true; | 1412 return true; |
1411 } | 1413 } |
1412 return false; | 1414 return false; |
1413 } | 1415 } |
1414 } | 1416 } |
1415 | 1417 |
1416 /** | 1418 /** |
1417 * @typedef {{messageIndex: number, matchIndex: number}} | 1419 * @typedef {{messageIndex: number, matchIndex: number}} |
1418 */ | 1420 */ |
1419 WebInspector.ConsoleView.RegexMatchRange; | 1421 WebInspector.ConsoleView.RegexMatchRange; |
OLD | NEW |