git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 0ae08666f0e63f6c885066bd2663eab5e5a49b02

use key instead of code (#541)

Daniel Mills authored on 5/25/2017, 1:42:04 AM
Mikey committed on 5/25/2017, 1:42:04 AM
Parent: 93936d1e2482bacac0cbdb8f0fbf49d3d6f4a9f5

Files changed

modules/app/html/search.jschanged
modules/app/html/search.jsView
@@ -22,9 +22,9 @@
2222 setView(ev.detail.id)
2323 searchBox.value = ev.detail.id
2424 },
2525 'ev-keydown': (ev) => {
26- if (ev.code === 'Enter') {
26+ if (ev.key === 'Enter') {
2727 doSearch()
2828 ev.preventDefault()
2929 }
3030 }

Built with git-ssb-web