Skip to content

Commit 7b309de

Browse files
committed
Add named keystrokes
1 parent f27c0b7 commit 7b309de

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

tests/simulate/jquery.simulate.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,18 @@ $.extend($.simulate.prototype, {
135135
$.extend($.simulate, {
136136
defaults: {
137137
speed: 'sync'
138-
}
138+
},
139+
VK_TAB: 9,
140+
VK_ENTER: 13,
141+
VK_ESC: 27,
142+
VK_PGUP: 33,
143+
VK_PGDN: 34,
144+
VK_END: 35,
145+
VK_HOME: 36,
146+
VK_LEFT: 37,
147+
VK_UP: 38,
148+
VK_RIGHT: 39,
149+
VK_DOWN: 40
139150
});
140151

141152
})(jQuery);

0 commit comments

Comments
 (0)