From b5cb14171b3dbd48ebb213654f2758781d7f127c Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 1 Feb 2016 06:24:17 +0000 Subject: Use a count with link hints; better comment. --- content_scripts/link_hints.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'content_scripts') diff --git a/content_scripts/link_hints.coffee b/content_scripts/link_hints.coffee index dba55c9d..6f95ac57 100644 --- a/content_scripts/link_hints.coffee +++ b/content_scripts/link_hints.coffee @@ -22,8 +22,8 @@ LinkHints = activateMode: (count = 1, mode = OPEN_IN_CURRENT_TAB) -> if 0 < count new LinkHintsMode mode, (event = null) -> - # Escape and Backspace are the two ways in which hints mode can exit following which we do no restart - # hints mode. + # This is called which LinkHintsMode exits. Escape and Backspace are the two ways in which hints mode + # can exit following which we do not restart hints mode. return if event?.type == "keydown" and KeyboardUtils.isEscape event return if event?.type == "keydown" and event.keyCode in [ keyCodes.backspace, keyCodes.deleteKey ] LinkHints.activateMode count-1, mode -- cgit v1.2.3