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

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

Issue 2474143002: DevTools: Rename prefix to query in the context of autocomplete (Closed)
Patch Set: merge Created 4 years, 1 month 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
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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 var section = WebInspector.shortcutsScreen.section(WebInspector.UIString('Co nsole')); 747 var section = WebInspector.shortcutsScreen.section(WebInspector.UIString('Co nsole'));
748 748
749 var shortcutL = shortcut.makeDescriptor('l', WebInspector.KeyboardShortcut.M odifiers.Ctrl); 749 var shortcutL = shortcut.makeDescriptor('l', WebInspector.KeyboardShortcut.M odifiers.Ctrl);
750 var keys = [shortcutL]; 750 var keys = [shortcutL];
751 if (WebInspector.isMac()) { 751 if (WebInspector.isMac()) {
752 var shortcutK = shortcut.makeDescriptor('k', WebInspector.KeyboardShortcut .Modifiers.Meta); 752 var shortcutK = shortcut.makeDescriptor('k', WebInspector.KeyboardShortcut .Modifiers.Meta);
753 keys.unshift(shortcutK); 753 keys.unshift(shortcutK);
754 } 754 }
755 section.addAlternateKeys(keys, WebInspector.UIString('Clear console')); 755 section.addAlternateKeys(keys, WebInspector.UIString('Clear console'));
756 756
757 section.addKey(shortcut.makeDescriptor(shortcut.Keys.Tab), WebInspector.UISt ring('Autocomplete common prefix')); 757 keys = [
einbinder 2016/11/03 17:59:06 We haven't had this functionality for a long time.
758 section.addKey(shortcut.makeDescriptor(shortcut.Keys.Right), WebInspector.UI String('Accept suggestion')); 758 shortcut.makeDescriptor(shortcut.Keys.Tab),
759 shortcut.makeDescriptor(shortcut.Keys.Right)
760 ];
761 section.addRelatedKeys(keys, WebInspector.UIString('Accept suggestion'));
759 762
760 var shortcutU = shortcut.makeDescriptor('u', WebInspector.KeyboardShortcut.M odifiers.Ctrl); 763 var shortcutU = shortcut.makeDescriptor('u', WebInspector.KeyboardShortcut.M odifiers.Ctrl);
761 this._shortcuts[shortcutU.key] = this._clearPromptBackwards.bind(this); 764 this._shortcuts[shortcutU.key] = this._clearPromptBackwards.bind(this);
762 section.addAlternateKeys([shortcutU], WebInspector.UIString('Clear console p rompt')); 765 section.addAlternateKeys([shortcutU], WebInspector.UIString('Clear console p rompt'));
763 766
764 keys = [shortcut.makeDescriptor(shortcut.Keys.Down), shortcut.makeDescriptor (shortcut.Keys.Up)]; 767 keys = [shortcut.makeDescriptor(shortcut.Keys.Down), shortcut.makeDescriptor (shortcut.Keys.Up)];
765 section.addRelatedKeys(keys, WebInspector.UIString('Next/previous line')); 768 section.addRelatedKeys(keys, WebInspector.UIString('Next/previous line'));
766 769
767 if (WebInspector.isMac()) { 770 if (WebInspector.isMac()) {
768 keys = 771 keys =
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 return true; 1326 return true;
1324 } 1327 }
1325 return false; 1328 return false;
1326 } 1329 }
1327 }; 1330 };
1328 1331
1329 /** 1332 /**
1330 * @typedef {{messageIndex: number, matchIndex: number}} 1333 * @typedef {{messageIndex: number, matchIndex: number}}
1331 */ 1334 */
1332 WebInspector.ConsoleView.RegexMatchRange; 1335 WebInspector.ConsoleView.RegexMatchRange;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698