Skip to content

Commit

Permalink
Update Mousetrap to 1.6.5
Browse files Browse the repository at this point in the history
Upon manual testing this did not break any functionally. Since this
updates the Minor from 3 to 6 there should not be any breaking changes.

The library is upgraded such that a minor modification can be made,
allowing us to properly isolate website behaviour from Vimari (normal
mode). I figured it best to perform this modification on the latest
version of Mousetrap such that possible new features are included.
  • Loading branch information
nbelzer committed Jul 25, 2020
1 parent cd74280 commit c57cc43
Show file tree
Hide file tree
Showing 2 changed files with 763 additions and 524 deletions.
2 changes: 1 addition & 1 deletion Vimari Extension/js/injected.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ var actionMap = {
};

// Meant to be overridden, but still has to be copy/pasted from the original...
Mousetrap.stopCallback = function(e, element, combo) {
Mousetrap.prototype.stopCallback = function(e, element, combo) {
// Escape key is special, no need to stop. Vimari-specific.
if (combo === 'esc' || combo === 'ctrl+[') { return false; }

Expand Down
Loading

0 comments on commit c57cc43

Please sign in to comment.