Skip to content

Commit

Permalink
fix space key error
Browse files Browse the repository at this point in the history
  • Loading branch information
signalkuppe committed Oct 23, 2019
1 parent a3f90a5 commit 8b72bff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Include css and js files
Be sure to use the latest version

```html
<link rel="stylesheet" media="screen" href="https://cdn.jsdelivr.net/npm/fisarmonica@1.2.0/dist/fisarmonica.min.css" />
<script src="https://cdn.jsdelivr.net/npm/fisarmonica@1.2.0/dist/fisarmonica.min.js" ></script>
<link rel="stylesheet" media="screen" href="https://cdn.jsdelivr.net/npm/fisarmonica@1.2.1/dist/fisarmonica.min.css" />
<script src="https://cdn.jsdelivr.net/npm/fisarmonica@1.2.1/dist/fisarmonica.min.js" ></script>
```

Prepare the base markup
Expand Down
2 changes: 1 addition & 1 deletion dist/fisarmonica.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/fisarmonica.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ var Fisarmonica = function (options) { // eslint-disable-line no-unused-vars, pa
}
buttons[index].focus()
e.preventDefault()
} else if (key === '32' || key === '13') { // enter or space
} else if (key === '13') { // enter
_buttonClickHandler(buttons[index])
e.preventDefault()
}
Expand Down

0 comments on commit 8b72bff

Please sign in to comment.