Skip to content
Permalink
Browse files
2010-04-14 Alexander Pavlov <apavlov@chromium.org>
        Reviewed by Joseph Pecoraro.

        Web Inspector: Ctrl-L (Clear History) does nothing on Windows
        https://bugs.webkit.org/show_bug.cgi?id=37579

        * inspector/front-end/ConsoleView.js:
        (WebInspector.ConsoleView):

Canonical link: https://commits.webkit.org/48878@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@57590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
eseidel committed Apr 14, 2010
1 parent e3f87ca commit caa2501b4ed175dc3b5872743511e45955b8dcc3
Showing 2 changed files with 14 additions and 2 deletions.
@@ -1,3 +1,13 @@
2010-04-14 Alexander Pavlov <apavlov@chromium.org>

Reviewed by Joseph Pecoraro.

Web Inspector: Ctrl-L (Clear History) does nothing on Windows
https://bugs.webkit.org/show_bug.cgi?id=37579

* inspector/front-end/ConsoleView.js:
(WebInspector.ConsoleView):

2010-04-14 Anton Muhin <antonm@chromium.org>

Not review, build fix.
@@ -93,11 +93,13 @@ WebInspector.ConsoleView = function(drawer)
this._shortcuts = {};

var shortcut;
var clearConsoleHandler = this.requestClearMessages.bind(this);

shortcut = WebInspector.KeyboardShortcut.makeKey("k", WebInspector.KeyboardShortcut.Modifiers.Meta);
this._shortcuts[shortcut] = clearConsoleHandler;
// This case requires a separate bound function as its isMacOnly property should not be shared among different shortcut handlers.
this._shortcuts[shortcut] = this.requestClearMessages.bind(this);
this._shortcuts[shortcut].isMacOnly = true;

var clearConsoleHandler = this.requestClearMessages.bind(this);
shortcut = WebInspector.KeyboardShortcut.makeKey("l", WebInspector.KeyboardShortcut.Modifiers.Ctrl);
this._shortcuts[shortcut] = clearConsoleHandler;

0 comments on commit caa2501

Please sign in to comment.