diff options
author | Chrysa Papadopoulou <papadopoulou.chrysa@gmail.com> | 2017-02-14 17:15:27 +0200 |
---|---|---|
committer | Chrysa Papadopoulou <papadopoulou.chrysa@gmail.com> | 2017-02-14 17:15:27 +0200 |
commit | 21d478d39602408aeb968c4e263d8e9bc712757e (patch) | |
tree | de1680c2607d83dbc535ca750759b90b7babd7ed /src | |
parent | 3f45ef4908e560a130f0d3bffbddf216d89423fe (diff) | |
download | plyr-21d478d39602408aeb968c4e263d8e9bc712757e.tar.lz plyr-21d478d39602408aeb968c4e263d8e9bc712757e.tar.xz plyr-21d478d39602408aeb968c4e263d8e9bc712757e.zip |
Add looping key bindings to allowed array
Diffstat (limited to 'src')
-rw-r--r-- | src/js/plyr.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index d2973952..6043eef6 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -3497,6 +3497,9 @@ allowed = [48, 49, 50, 51, 52, 53, 54, 56, 57, 75, 77, 70, 67], count = get().length; + //add also to allowed the keys of looping events + allowed = allowed.concat(Object.values(config.loopKeyEvents)); + // Only handle global key press if there's only one player // and the key is in the allowed keys // and if the focused element is not editable (e.g. text input) |