aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-04-07Bump version to 1.59.v1.59Stephen Blott
2017-04-06Better note re. key handling and PDF tabs.Stephen Blott
2017-03-24Note key-handling changes in README.md.Stephen Blott
2017-03-24Merge pull request #2456 from smblott-github/always-keydown-and-event.keyStephen Blott
Always use keydown and event.key (partial PDF-tab fix)
2017-03-22Note TODO re. keydown, keypress.Stephen Blott
2017-03-22Include utils in the HUD.Stephen Blott
Fixes #2454. Because `Utils` wasn't available, neither were the `mapkey` mappings.
2017-03-22Move key handling to keydown and event.key.Stephen Blott
- For PDF tabs, we see keydown events but we don't see the corresponding keypress events, so this allows us to navigate through PDF tabs with J/K. - This relies on using `event.key` instead of `event.keyIdentifier` (which is no longer supported). - Also move mapkey handling into the keyboard utils. The effect of all of this is to simplify and unify much of our key handling. Fixes #1243 (for tab commands). There are known places where we can prune a considerable amount of key handling code. However, that code is left in place for now in case this change throws up some unexpected issues.
2017-03-22Remove and refactor mapKeyRegistery.Stephen Blott
1. Remove the use of mapKeyRegistery from the mode handler. 2. Refactor use of mapKeyRegistery keyboard utils. This is preparatory to refactoring all of the keyboard handling.
2017-03-19Bump version to 1.58.2.v1.58.2Stephen Blott
2017-03-19event.key is not always definedStephen Blott
Fixes #2453.
2017-03-13Merge pull request #2448 from mrmr1993/use-right-check-for-hashChangeStephen Blott
Minor fix: Use the appropriate handler for hashChange
2017-03-10Use the appropriate handler for hashChangemrmr1993
2017-03-09Bump version number to 1.58.1.v1.58.1Stephen Blott
2017-03-09Fix #2445 (link hints with queue broken).Stephen Blott
2017-03-08Merge pull request #2444 from rdpate/patch-1Stephen Blott
fix typo
2017-03-08fix typoRoger Pate
2017-03-08Bump version number to 1.58.v1.58Stephen Blott
2017-03-04Merge pull request #2369 from gdh1995/zoomed-docEl-offsetStephen Blott
getViewportTopLeft: support zoomed static documentElement
2017-03-04Merge pull request #2384 from gdh1995/pass-keys-on-body-lockedStephen Blott
InsertMode should not handle key events if document.body is editable
2017-03-04Merge pull request #2428 from mrmr1993/use-event-argumentStephen Blott
Use event argument instead of global event object
2017-02-11Don't depend on global event for Frame event listeners (FF)mrmr1993
2017-02-11Don't depend on global event for CoreScroller event listeners (FF)mrmr1993
2017-02-11Merge pull request #2426 from mrmr1993/no-depreciated-apisStephen Blott
Replace depreciated APIs
2017-02-09Guard against undefined (out of spec) getDestinationInsertionPointsmrmr1993
2017-02-08Stop using deprecated key 'selected' of tabs; switch to 'active'mrmr1993
The documentation suggests that 'highlighted' is equivalent to 'selected'. However, multiple tabs can be highlighted in a window -- in fact, everywhere 'selected' was used, we wanted the unique active tab.
2017-02-08Stop using non-standard event.srcElement; switch to event.targetmrmr1993
2017-02-08Remove stub for deprecated onActiveChangedmrmr1993
2017-02-08Remove stub for deprecated tabs.onSelectionChangedmrmr1993
2017-02-08Stop using deprecated tabs.getAllInWindow; switch to tabs.querymrmr1993
2017-02-08Stop using deprecated tabs.getSelected; switch to tabs.querymrmr1993
2017-01-03InsertMode should not handle key events if document.body is editablegdh1995
For example, the host JavaScript may create an "about:blank" iframe with a `content-editable` `body`, and then: * the parent frame may handle `Escape` key events by itself * but now, Vimium always grabs `Escape` events * and tries to exit `InsertMode` * although `document.body` is still current `activeElement` after `body.blur()` * as a result, neither the parent can receive and handle wanted keyevents, nor Vimium will succeed in returing back to NormalMode
2017-01-03take documentElement's border into considerationgdh1995
2017-01-03getViewportTopLeft: consider the new style "contain"gdh1995
If an element's `contain` is/contains `paint`, then it will be forced showing just as its `position` is `relative`.
2017-01-03getViewportTopLeft: support zoomed static documentElementgdh1995
if `document.documentElement` is zoomed, Vimium's hints `<div>` are also zoomed, and then `scrollY` may be not equal with viewport client rect's `top`. Example: * make the tab zoom level is 1, `documentElement`'s `zoom` style is 2 * open a page, scroll to the top left corner * press `f`, and all things are right * exit LinkHints mode, scroll down for 100px, and then press `f` * this time all hints has moved down 200px from the correct place
2016-12-26Merge pull request #2386 from smblott-github/fix-infinite-scrollingStephen Blott
Fix (another) infinite-scroll issue.
2016-12-26Fix (another) infinite-scroll issue.Stephen Blott
Steps to reproduce: - Press and hold `j`. - Tab `k`. - Release `j`. The tap on `k` is uninstalling the `cancelEventListener` installed by `j`, and because we advance `@time`, the `j` stops scrolling and removes the `cancelEventListener` installed for `k`. So we end up with no `cancelEventListener` installed. The fix is to make the `cancelEventListener` specific to the scroller instance. The more fundamental problem here is that we're mixing dynamic and static state. A better approach would be to have `CoreScroller` as a class, with a new instance created for each scroll instance.
2016-12-26Merge pull request #2385 from smblott-github/tagName-not-a-stringStephen Blott
Guard against element.tagName not being a string.
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.
2016-12-21Don't focus non-focusable node.Stephen Blott
Try the following.... - load page - `/` - type some junk which matches nothing - `Escape` We expect to leave find mode. Instead, we have to hit escape again to get out of find mode. Here, `focusNode.focus()` is not a function.
2016-12-21Note passNextKey normal in README.md.Stephen Blott
2016-12-21Tweak #2327.Stephen Blott
2016-12-21Merge pull request #2308 from achew22/cakeStephen Blott
Don't set the update_url by default.
2016-12-21Merge pull request #2379 from smblott-github/match-about-blankStephen Blott
Add match-about-blank permission.
2016-12-21Merge pull request #2311 from smblott-github/enterNormalModeStephen Blott
New command option to enter normal mode
2016-12-21Merge pull request #2327 from sco-tt/capitalized-link-hints-options-2Stephen Blott
Makes sure all custom link hint characters defined in settings are lowercase
2016-12-21Add match-about-blank permission.Stephen Blott
This allows Vimium to run in iframes with `about:blank` URLs. Fixes #2360.
2016-12-14Forces user defined link hints to when options are saved on options pageScott Pinkelman
2016-12-12Remove unused parameter.Stephen Blott
2016-12-12Remove references to enterNormalMode command.Stephen Blott
2016-12-12Merge pull request #2370 from smblott-github/float-find-mode-matches-rightStephen Blott
Float find-mode matches to the right.