Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js

Issue 2251203003: DevTools: Remove 200ms delay in console prompt (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added return Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698