aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/link_hints.coffee
AgeCommit message (Collapse)Author
2018-08-13Cache keydown events while launching link hints.Stephen Blott
Launching link hints can sometimes be slow. For filtered hints, the user already knows what to type - but must nevertheless wait until the hints have been calculated and rendered. Here, we cache intervening keydown events, and replay them once hints-mode proper is launched. This should make improve usability (in the case of filtered hints). Fixes #3050.
2018-04-01Disable click listener detection and bump to v1.63.3.v1.63.3Stephen Blott
2018-01-10Fix issue referenceFlorian Bruhin
This sounds like #2035, #2305 is unrelated.
2017-12-18Do not use vimiumOnClickAttributeName variable...Stephen Blott
... use literals instead. For some reason, on Firefox, using `vimiumOnClickAttributeName` was causing link hints to fail silently (on Facebook). It's not at all clear why this was happening. Simply repeating the literal fixes the issue. Fixes #2879.
2017-12-18Tweak hint scoring for filtered hints.Stephen Blott
This tweaks the scoring of hints for filtered hints. Specifically, it scores matches at the start of the text or the start of a word higher than whole-word matches. This is intended avoid the phenomenon whereby adding matching characters to the filter causes the selected hint to change.
2017-12-16Fix rotate hints for filtered hints.Stephen Blott
We should rotate on `<Shift-Space>` too.
2017-12-14Detect click listeners for link hints.Stephen Blott
This is a simpler version of #1167. It detects clickable elements with listeners added with `addEventListener()`. It includes some of @mrmr1993's ideas from #1167 (in fact, it's mostly those ideas tweaked into a slightly different form).
2017-11-25Tweak #2783.Stephen Blott
Tiny tweaks... 1. The test is clearer like this. 2. Use a more CoffeeScript-ish approach to sub-string.
2017-11-25Merge pull request #2783 from mrmr1993/use-HTML5-labelsStephen Blott
Use HTML labels accessor to get link hint labels for input elements
2017-11-25Merge pull request #2601 from mrmr1993/ff-copy-pasteStephen Blott
Enable Firefox clipboard commands
2017-11-24Merge branch 'mrmr1993-pr/link-hints-consistent-flash'Stephen Blott
2017-11-24Localise the logic for handling flash elements.Stephen Blott
2017-11-24Reintroduce default value for argument in LinkHints::activateLinkmrmr1993
2017-11-24Flash the clicked element for alphabet hintsmrmr1993
2017-11-24Merge branch 'mrmr1993-simplifyTabCount'Stephen Blott
Merging #2792 (mention @mrmr1993).
2017-11-24Retain @tabCount unchanged for non-printable characters.Stephen Blott
Previously, @tabCount was reset on the `<Shift>` `keydown` event, which defeats the purpose of #2792. Also, the @tabCount was reset on other non-printable characters such as `<LeftArrow>`.
2017-11-20Unify link hint flash codepathsmrmr1993
2017-11-20Inline installKeyboardBlockermrmr1993
2017-11-20Tidy up multiple/redundant checks in LinkHints.activateLinkmrmr1993
2017-11-20Use Rect.translate to create rects for addFlashRectmrmr1993
2017-11-18Merge pull request #2802 from mrmr1993/pr/link-hints-pass-non-printing-keysStephen Blott
Don't suppress default action for non-printing keys in link hints
2017-11-18FF: Use HUD.copyToClipboard everywheremrmr1993
2017-11-16Use Mode::push to handle adding/removing a handlermrmr1993
2017-11-14Don't suppress default action for non-printing keys in link hintsmrmr1993
This restores the old behaviour prior to c4cc76e9f6a0a99ebc297e420be739a0fc77f827 (PR #2772).
2017-11-11Remove unclear & unnecessary tabCount argument to updateVisibleMarkersmrmr1993
2017-11-11Clear tabCount explicitly when needed, instead of implicitly and undoingmrmr1993
This changes the behaviour of Enter and Space. * It should make no difference for Enter, as it exits the mode. * It makes no sense for rotating the layering of the hints to clear the active hint (when the next key is pressed), so I suspect it was an oversight.
2017-11-09Use HTML labels accessor to get link hint labels for input elementsmrmr1993
2017-11-09Suppress keydown events for link hint charactersmrmr1993
2017-11-03ContentEditable must be lower case here.Stephen Blott
See https://github.com/philc/vimium/pull/2762#issuecomment-341490268.
2017-11-02Add some roles used by GMail to link hints, reduce no. of comparisonsmrmr1993
2017-11-01Use Rect.intersects instead of Rect.intersectsStrictmrmr1993
We don't care about overlap at the border here, so we can happily use intersects over intersectsStrict.
2017-11-01Rename Rect.rectOverlaps to Rect.intersectsStrict, clarify the commentmrmr1993
2017-10-29Let handlerStack call consumeKeyup rather than calling it explicitlymrmr1993
2017-10-29Suppress all keyup events automatically if we consume the keydownmrmr1993
2017-10-29Make file inputs work with filtered hints.Stephen Blott
2017-10-25FF: Share |root| global proxy, re-add the globals to window on DOMLoadmrmr1993
This is a workaround for Firefox bug 1408996.
2017-10-19Recognise aria-role=tab elements as clickablemrmr1993
In particular, these are used in the current (2017-10-19) version of YouTube. This fixes #2730.
2017-10-07Tweak #2701 (hint characters for filtered hints).Stephen Blott
Some tweaks to #2701 from @ahstro. 1. Simplify the logic for calculating `modifiers`. 2. Revert the ordering of the `event.repeat` test and `keyChar` assignment. 3. Link hint characters *only* match in upper case. 4. If there are link-hint characters (non numbers), then shifted characters are only ever hints. 5. Otherwise, revert to doing all hint text comparison in lower case.
2017-10-06Allow using capital letters as link hint charactersAnton Strömkvist
2017-09-14Fix #2642.Stephen Blott
Fixes #2642.
2017-04-21Fix tab for link-hint selection.Stephen Blott
We were leaking the keydown event to the page when using TAB to select link hints (filtered hints).
2017-04-18Fix <Shift> or <Ctrl> link-hint behaviour.Stephen Blott
Error was introduced by seemingly innocuous but nevertheless significant change in previous commit. Tests picked up the problem.
2017-04-18Fix filtered link hints.Stephen Blott
For filtered link hints, " " was broken; it was treated as "space".
2017-04-18Avoid repeating Backspace and Delete keys.Stephen Blott
2017-04-18Remove use of keyCodes entirely.Stephen Blott
event.keyCode` is depricated: - https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
2017-04-18Rework tests for all key handling on keydown.Stephen Blott
2017-04-18Remove out-of-date comment.Stephen Blott
2017-04-18Migrate link hints to keydown only.Stephen Blott
2017-03-09Fix #2445 (link hints with queue broken).Stephen Blott
2016-12-26Guard against element.tagName not being a string.Stephen Blott
Example page: http://codeforces.com/contest/752/problem/B. There, `element.tagName` is an element with `name` `tagName` (not a string). Here, we guard against that case. Fixes #2305.