Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
fix(hotkeys): do not trigger hotkey action if cursor is in input field
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Burgmer committed Jul 28, 2015
1 parent 65e46dc commit 8e269ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/slides/slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ angular.module('w11k.slides').directive('w11kSlides', [
if (event.altKey || event.ctrlKey || event.shiftKey || event.metaKey) {
return;
}
var tagName = event.target.tagName;
if (tagName === 'INPUT' || tagName === 'TEXTAREA') {
return;
}

// right or page down
if (event.keyCode === 39 || event.keyCode === 34) {
Expand Down

0 comments on commit 8e269ae

Please sign in to comment.