Skip to content

Commit efdfaad

Browse files
committed
Issue 192: added Mac's metaKey to list of checked control keys in keyboard navigation
1 parent 8f7da7c commit efdfaad

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/scrollable/scrollable.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,9 @@
291291
$(document).bind("keydown.scrollable", function(evt) {
292292

293293
// skip certain conditions
294-
if (!conf.keyboard || evt.altKey || evt.ctrlKey || $(evt.target).is(":input")) { return; }
294+
if (!conf.keyboard || evt.altKey || evt.ctrlKey || evt.metaKey || $(evt.target).is(":input")) {
295+
return;
296+
}
295297

296298
// does this instance have focus?
297299
if (conf.keyboard != 'static' && current != self) { return; }

test/scrollable/single.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<script src="../js/jquery-1.3.2.js"></script>
2+
<script src="../js/jquery-1.5.min.js"></script>
33
<script src="../../src/scrollable/scrollable.js"></script>
44

55
<link rel="stylesheet" type="text/css" href="style.css"/>
@@ -32,12 +32,12 @@
3232

3333
<div class="items">
3434
<div>0</div>
35-
<!-- <div>1</div>
35+
<div>1</div>
3636
<div>2</div>
3737
<div>3</div>
3838
<div>4</div>
3939
<div>5</div>
40-
<div>6</div> -->
40+
<div>6</div>
4141
</div>
4242

4343
</div>

test/validator/dateinputs.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
<label>
5050
date
51-
<input type="date" title="Use format yyyy-mm-dd" name="day" required="required" />
51+
<input type="date" title="Use format yyyy-mm-dd" name="day" required />
5252
</label>
5353

5454
<label>

0 commit comments

Comments
 (0)