diff options
author | Matthieu Aubry <mattab@users.noreply.github.com> | 2018-08-28 22:57:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-28 22:57:26 +0300 |
commit | 3b86d01f6908644bff516272ea7a95790dc11bd9 (patch) | |
tree | b8dc2cff245ef7ce706f976080441764a22ae891 /plugins/Live | |
parent | 3c627052ef230cc73e5a67f637d398e9d80894c5 (diff) |
Visitor profile: do not load next/previous visitor when ALT key is pressed (#13356)
ALT+Left or Alt+Right is a keyboard shortcut to go back/forward in the browser, so do not go previous/next visitor when ALT+left/right is pressed, so that we keep the Back/Forward browser feature working
Diffstat (limited to 'plugins/Live')
-rw-r--r-- | plugins/Live/javascripts/visitorProfile.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Live/javascripts/visitorProfile.js b/plugins/Live/javascripts/visitorProfile.js index 663895bcda..021908f2e8 100644 --- a/plugins/Live/javascripts/visitorProfile.js +++ b/plugins/Live/javascripts/visitorProfile.js @@ -119,9 +119,9 @@ }); $element.on('keydown', function (e) { - if (e.which == 37) { // on <- key press, load previous visitor + if (e.which == 37 && !e.altKey) { // on <- key press, load previous visitor self._loadPreviousVisitor(); - } else if (e.which == 39) { // on -> key press, load next visitor + } else if (e.which == 39 && !e.altKey) { // on -> key press, load next visitor self._loadNextVisitor(); } }); |