1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

fix hotkey bugs

This commit is contained in:
Rokt33r
2015-07-19 15:10:09 +09:00
parent e9308bdd69
commit 7afad6ac49

View File

@@ -273,13 +273,14 @@ module.exports = React.createClass({
if (document.activeElement === searchInput) {
switch (e.keyCode) {
case 38:
e.preventDefault()
searchInput.blur()
break
case 40:
e.preventDefault()
searchInput.blur()
break
case 27:
e.preventDefault()
searchInput.blur()
break
}