-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "sensei-grid", | ||
"version": "0.1.0", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/datazenit/sensei-grid", | ||
"authors": [ | ||
"Lauris <[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* sensei-grid v0.1.0 | ||
* sensei-grid v0.1.2 | ||
* Copyright (c) 2014 Lauris Dzilums <[email protected]> | ||
* Licensed under MIT | ||
*/ | ||
|
@@ -52,7 +52,7 @@ table { | |
} | ||
.sensei-grid, | ||
.sensei-grid-editor input, | ||
.sensei-grid-editor input { | ||
.sensei-grid-editor select { | ||
font: 14px Helvetica, Arial, sans-serif; | ||
line-height: 20px; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/** | ||
* sensei-grid v0.1.0 | ||
* sensei-grid v0.1.2 | ||
* Copyright (c) 2014 Lauris Dzilums <[email protected]> | ||
* Licensed under MIT | ||
*/ | ||
|
@@ -494,17 +494,17 @@ | |
// specific keyCodes that won't be hijacked from the editor | ||
var editorCodes = [8, 37, 38, 39, 40]; | ||
|
||
if ((plugin.getActiveCell().length === 0 && !plugin.isEditing) || !_.contains(codes, e.keyCode)) { | ||
if ((plugin.getActiveCell().length === 0 && !plugin.isEditing) || !_.contains(codes, e.which)) { | ||
return; | ||
} | ||
|
||
if (plugin.isEditing && _.contains(editorCodes, e.keyCode)) { | ||
if (plugin.isEditing && _.contains(editorCodes, e.which)) { | ||
return; | ||
} else { | ||
e.preventDefault(); | ||
} | ||
|
||
switch (e.keyCode) { | ||
switch (e.which) { | ||
case 37: // left | ||
plugin.move("left"); | ||
break; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters