diff options
author | Stefan Giehl <stefan@piwik.org> | 2017-03-22 01:18:15 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2017-03-22 01:18:15 +0300 |
commit | 51bcd689b625ce79de529a20868c1c2215093025 (patch) | |
tree | 41a8b2a163c4df470f7f1e8c1beba8044ac0e406 /plugins/SegmentEditor | |
parent | 660386871e53467c01c2645bdd398f618bbece00 (diff) |
ignore keyboard events if ALT key is pressed (#11503)
Diffstat (limited to 'plugins/SegmentEditor')
-rw-r--r-- | plugins/SegmentEditor/javascripts/Segmentation.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/SegmentEditor/javascripts/Segmentation.js b/plugins/SegmentEditor/javascripts/Segmentation.js index 231746a37a..d85399781b 100644 --- a/plugins/SegmentEditor/javascripts/Segmentation.js +++ b/plugins/SegmentEditor/javascripts/Segmentation.js @@ -8,6 +8,9 @@ Segmentation = (function($) { Mousetrap.bind('s', function (event) { + if (event.altKey) { + return; + } if (event.preventDefault) { event.preventDefault(); } else { |