Skip to content

Commit

Permalink
fix arrow keys
Browse files Browse the repository at this point in the history
  • Loading branch information
whackashoe committed Jan 11, 2015
1 parent e3de743 commit b514d8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/js/interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ $(document).ready(function() {
document.querySelector('#editor').addEventListener('input', function() { update_caret(this); });
document.querySelector('#editor').addEventListener('propertychange', function() { update_caret(this); });
document.querySelector('#editor').addEventListener('click', function() { update_caret(this); });
document.querySelector('#editor').addEventListener('keydown', function() { update_caret(this); });
document.querySelector('#editor').addEventListener('keyup', function() { update_caret(this); });

//catch tabs
$("body").on('keydown', '#editor', function(e) {
Expand Down

0 comments on commit b514d8f

Please sign in to comment.