Changeset 57590 in webkit


Ignore:
Timestamp:
Apr 14, 2010 11:18:34 AM (14 years ago)
Author:
eric@webkit.org
Message:

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):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57578 r57590  
     12010-04-14  Alexander Pavlov  <apavlov@chromium.org>
     2
     3        Reviewed by Joseph Pecoraro.
     4
     5        Web Inspector: Ctrl-L (Clear History) does nothing on Windows
     6        https://bugs.webkit.org/show_bug.cgi?id=37579
     7
     8        * inspector/front-end/ConsoleView.js:
     9        (WebInspector.ConsoleView):
     10
    1112010-04-14  Anton Muhin  <antonm@chromium.org>
    212
  • trunk/WebCore/inspector/front-end/ConsoleView.js

    r57405 r57590  
    9494
    9595    var shortcut;
     96
     97    shortcut = WebInspector.KeyboardShortcut.makeKey("k", WebInspector.KeyboardShortcut.Modifiers.Meta);
     98    // This case requires a separate bound function as its isMacOnly property should not be shared among different shortcut handlers.
     99    this._shortcuts[shortcut] = this.requestClearMessages.bind(this);
     100    this._shortcuts[shortcut].isMacOnly = true;
     101
    96102    var clearConsoleHandler = this.requestClearMessages.bind(this);
    97 
    98     shortcut = WebInspector.KeyboardShortcut.makeKey("k", WebInspector.KeyboardShortcut.Modifiers.Meta);
    99     this._shortcuts[shortcut] = clearConsoleHandler;
    100     this._shortcuts[shortcut].isMacOnly = true;
    101103    shortcut = WebInspector.KeyboardShortcut.makeKey("l", WebInspector.KeyboardShortcut.Modifiers.Ctrl);
    102104    this._shortcuts[shortcut] = clearConsoleHandler;
Note: See TracChangeset for help on using the changeset viewer.