Permalink
Browse files

Don't shift focus on keydown when meta/alt/ctrl pressed

  • Loading branch information...
jimwins committed Sep 5, 2012
1 parent 8050c54 commit ff6dc820e5ead7e7743cfeef926723f3499523bb
Showing with 3 additions and 3 deletions.
  1. +3 −3 index.php
View
@@ -494,9 +494,9 @@ function printChargeRecord(id) {
$('#txn').data('tax_rate', 0.00);
$(document).keydown(function(ev) {
- if (ev.keyCode == 16 || ev.keyCode == 17 || ev.keyCode == 18
- || ev.keyCode == 91) {
- $.isShifted++;
+ if (ev.keyCode == 16 || ev.keyCode == 17
+ || ev.keyCode == 18 || ev.keyCode == 91
+ || ev.metaKey || ev.altKey || ev.ctrlKey) {
return true;
}
var el = $.getFocusedElement();

0 comments on commit ff6dc82

Please sign in to comment.