diff options
| author | Stephen Blott | 2016-10-02 16:09:55 +0100 |
|---|---|---|
| committer | Stephen Blott | 2016-10-02 16:09:55 +0100 |
| commit | 30387142cd1fee828f0dc39864c68960167deff1 (patch) | |
| tree | d040f1e9c746c20c23e11fd9ec612429c5291f6a /content_scripts | |
| parent | 3cabcc92adebabf7b5665fddc29c2fa3330ec000 (diff) | |
| download | vimium-30387142cd1fee828f0dc39864c68960167deff1.tar.bz2 | |
Tweak logging.
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/mode_key_handler.coffee | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/content_scripts/mode_key_handler.coffee b/content_scripts/mode_key_handler.coffee index 6b6e4f0a..8c0ae4b8 100644 --- a/content_scripts/mode_key_handler.coffee +++ b/content_scripts/mode_key_handler.coffee @@ -20,7 +20,6 @@ class KeyHandlerMode extends Mode # Reset the key state, optionally retaining the count provided. reset: (@countPrefix = 0) -> - bgLog "Clearing key state: #{@countPrefix} (#{@name})" @keyState = [@keyMapping] constructor: (options) -> @@ -91,7 +90,7 @@ class KeyHandlerMode extends Mode @countPrefix == 0 and @keyState.length == 1 and keyChar in (@passKeys ? "") handleKeyChar: (keyChar) -> - bgLog "Handle key #{keyChar} (#{@name})" + bgLog "handle key #{keyChar} (#{@name})" # A count prefix applies only so long a keyChar is mapped in @keyState[0]; e.g. 7gj should be 1j. @countPrefix = 0 unless keyChar of @keyState[0] # Advance the key state. The new key state is the current mappings of keyChar, plus @keyMapping. @@ -99,7 +98,7 @@ class KeyHandlerMode extends Mode if @keyState[0].command? command = @keyState[0] count = if 0 < @countPrefix then @countPrefix else 1 - bgLog "Call #{command.command}[#{count}] (#{@name})" + bgLog " invoke #{command.command} count=#{count} " @reset() @commandHandler {command, count} @suppressEvent |
