From 30387142cd1fee828f0dc39864c68960167deff1 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 2 Oct 2016 16:09:55 +0100 Subject: Tweak logging. --- content_scripts/mode_key_handler.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'content_scripts') 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 -- cgit v1.2.3