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") { |
pfeldman
2016/08/18 03:32:36
WebInspector.KeyboardShortcut.Keys.PageUp
luoe
2016/08/18 15:46:45
While updating the console-viewport-stick-to-botto
| |
774 if (isEnterKey(event)) { | 774 this._updateStickToBottomOnWheel(); |
pfeldman
2016/08/18 03:32:36
return after that?
luoe
2016/08/18 15:46:45
Done.
| |
775 } else if (isEnterKey(event)) { | |
775 this._enterKeyPressed(event); | 776 this._enterKeyPressed(event); |
776 return; | 777 return; |
777 } | 778 } |
778 | 779 |
779 var shortcut = WebInspector.KeyboardShortcut.makeKeyFromEvent(event); | 780 var shortcut = WebInspector.KeyboardShortcut.makeKeyFromEvent(event); |
780 var handler = this._shortcuts[shortcut]; | 781 var handler = this._shortcuts[shortcut]; |
781 if (handler) { | 782 if (handler) { |
782 handler(); | 783 handler(); |
783 event.preventDefault(); | 784 event.preventDefault(); |
784 } | 785 } |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1410 return true; | 1411 return true; |
1411 } | 1412 } |
1412 return false; | 1413 return false; |
1413 } | 1414 } |
1414 } | 1415 } |
1415 | 1416 |
1416 /** | 1417 /** |
1417 * @typedef {{messageIndex: number, matchIndex: number}} | 1418 * @typedef {{messageIndex: number, matchIndex: number}} |
1418 */ | 1419 */ |
1419 WebInspector.ConsoleView.RegexMatchRange; | 1420 WebInspector.ConsoleView.RegexMatchRange; |
OLD | NEW |