aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode_insert.coffee
AgeCommit message (Collapse)Author
2016-03-31Use @suppressEvent instead of false.Stephen Blott
2016-03-30Rename handlerStack constants.Stephen Blott
Problems: - The meanings of some of the Mode/handlerStack constant names is far from obvious. - The same thing is named different things in different places. This changes various constant names such that: - the names used in the handler stack and in the modes are the same. - ditto vis-a-vis DomUtils. Also, break out the core of the handler stacks' `bubbleEvent` method into a switch statements. This makes it more obvious that the cases are mutually exclusive.
2016-03-04Do not use standalone @.Stephen Blott
The styles guide says not to use standalone `@`. So this changes the occurrences I could find (with sed) to `this`. Occurrences within files with major outstanding PRs are omitted.
2016-02-22Remove legacy reference to edit mode.Stephen Blott
Omitted from #1961.
2016-02-20hideHUD option applies to insert mode only.Stephen Blott
This makes the `hideHud` option apply only to insert mode (when entered with `i`). Fixes #1953. Fixes #487. We could rename the option itself and add migration code, but that seems overkill. An alternative would be to remove this option entirely.
2016-02-18PassNextKey; allow multiple mappings.Stephen Blott
This allows: map a passNextKey map b passNextKey (Previously, we only picked up the first mapping.)
2016-02-18PassNextKey; handle pass-next-key in insert mode.Stephen Blott
(First "fully" functional version.)
2016-02-18PassNextKey; initial implementation.Stephen Blott
This implements a passNextKey command (initially for normal mode only), as discussed in #1955.
2016-02-16Use `for own ... of` instead of `for ... of`mrmr1993
2015-06-08Remove "experimental" comment.Stephen Blott
I think we can safely remove this comment now, @mrmr1993. This is working out very nicely.
2015-05-05Possible re-working of #1627.Stephen Blott
2015-05-01Enter insert mode if an input inside a shadow DOM is focusedmrmr1993
This fixes issue #853.
2015-04-18Mode indicator: fix insert mode within edit mode.Stephen Blott
2015-04-18Mode indicator: initial move to HUD.Stephen Blott
2015-04-18Mode indicator: strip all references to badges.Stephen Blott
2015-02-09Merge branch 'visual-and-edit-modes'Stephen Blott
Conflicts: background_scripts/main.coffee content_scripts/vimium_frontend.coffee lib/keyboard_utils.coffee
2015-01-29Visual/edit modes: fix restore of insert-mode sub mode.Stephen Blott
2015-01-27Visual/edit modes: minor changes.Stephen Blott
- Minor changes. - Deactivate modes on inputs from focusInput().
2015-01-26Visual/edit modes: fix problem resuming insert mode.Stephen Blott
2015-01-26Visual/edit modes: better recovery after focus change.Stephen Blott
If we're in edit mode and the user changes tab, we lose the focus. That causes edit mode (and any sub mode like visual mode) to exit. When we return, we're in insert mode! With this commit, we save the state, and restore it when appropriate.
2015-01-23Visual/edit modes: more (and better) commands.Stephen Blott
2015-01-23Visual/edit modes: develop edit mode.Stephen Blott
- implement "i", "a". - fix "w" for edit mode. - try out "e" for enter edit mode. - initial implementation "o", "O" - Suppress backspace and delete. - Scroll in text areas.
2015-01-20Rework DOM tests (clean up).Stephen Blott
2015-01-18Modes; refactor permanent instance.Stephen Blott
I had intended the whole Insert.permanentInstance lark to be gone before merging #1413. Somehow, this got missed. It's retained, here, but is only needed for the tests. It gives the tests a hook into the single insert-mode permanent instance, so they can test its state.
2015-01-18Modes; fix error for exit insert mode.Stephen Blott
We were blurring the active input element whenever we exit insert mode (my bad). It should only be blurred when we exit insert mode via Escape.
2015-01-18Modes; pre-merge clean up.Stephen Blott
2015-01-17Modes; yet more tweaks...Stephen Blott
- Mainly comments. - Rename chooseBadge to updateBadge (for consistency). - No badge for passkeys; also fix tests.
2015-01-16Modes; clean up.Stephen Blott
2015-01-16Modes; tweaks.Stephen Blott
2015-01-15Modes; yet more teaks and fiddles.Stephen Blott
2015-01-15Modes; tweaks and fiddles.Stephen Blott
2015-01-14Modes; more reworking.Stephen Blott
2015-01-14Modes; fix tests.Stephen Blott
2015-01-14Modes; rework PostFindMode (again).Stephen Blott
2015-01-14Modes; substantial reworking of insert mode (and friends).Stephen Blott
2015-01-13Modes; temporary commit.Stephen Blott
2015-01-13Modes; temporary commit.Stephen Blott
2015-01-10Modes; re-architect key suppression and passkeys.Stephen Blott
2015-01-10Modes; better printable detection, move to keyboard_utils.Stephen Blott
2015-01-10Modes; reinstate key blockers:Stephen Blott
- when the selection is contentEditable - in PostFindMode Restricted to printable characters.
2015-01-10Modes; minor changes.Stephen Blott
2015-01-10Modes; revert to master's handling of #1415.Stephen Blott
The behaviour in the situations described in #1415 require more thought and discussion.
2015-01-10Modes; instrument for debugging...Stephen Blott
- Set Mode.debug to true to see mode activation/deactivation on the console. - Use Mode.log() to see a list of currently-active modes. - Use handlerStack.debugOn() to enable debugging of the handler stack.
2015-01-10Modes; more changes...Stephen Blott
- Better comments. - Strip unnecessary handlers for leaving post-find mode. - Simplify passKeys. - focusInput now re-bubbles its triggering keydown event.
2015-01-09Modes; fix focus return value for InsertModeTrigger.Stephen Blott
2015-01-09Modes; block unmapped keys with contentEditable.Stephen Blott
2015-01-09Modes; rework blocker for contentEditable.Stephen Blott
2015-01-09Modes; various changes...Stephen Blott
- Refactor insert-mode constructor. - Gneralise focusInput.
2015-01-09Modes; fix click handling for all "overlay" modes.Stephen Blott
From #1413... Go here: http://jsfiddle.net/smblott/9u7geasd/ In the result window: Type /Fish (do not press enter). Click in one of the text areas. Press Esc. Type aaa - you're in insert mode. Type jk - hmm, where did they go? Type o - oops, you're also in normal mode.
2015-01-08Modes; incorporate small changes from #1413.Stephen Blott
Slightly more significant: Move several utilities to dome_utils.