Skip to content

Commit

Permalink
use keyCode instead of charCode
Browse files Browse the repository at this point in the history
  • Loading branch information
biasmv committed Jul 10, 2015
1 parent ac55905 commit 38368a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/sample-select.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Usage
// presses. Whenever the return key is pressed, the camera zooms
// in on the currently selected residues.
document.addEventListener('keypress', function(ev) {
if (ev.charCode === 13) {
if (ev.keyCode === 13) {
var allSelections = [];
viewer.forEach(function(go) {
if (go.selection !== undefined) {
Expand Down

0 comments on commit 38368a3

Please sign in to comment.