make setFocus: bool work

This commit is contained in:
Andreas Rumpf 2017-06-28 22:54:24 +02:00
commit 8eef2074b4
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ proc createEntry(id: int; d: cstring; completed, selected: bool): VNode {.compac
else:
input(class = "edit", name = "title", key=id,
onblur = focusLost,
onkeyupenter = editEntry, value = d, setFocus)
onkeyupenter = editEntry, value = d, setFocus=true)
proc makeFooter(entriesCount, completedCount: int): VNode {.compact.} =
result = buildHtml(footer(class = "footer")):