make setFocus: bool work
This commit is contained in:
parent
c681f0055f
commit
8eef2074b4
2 changed files with 2 additions and 2 deletions
|
|
@ -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")):
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ proc tcall2(n, tmpContext: NimNode): NimNode =
|
|||
elif key in SpecialAttrs:
|
||||
result.add newDotAsgn(tmp, key, x[1])
|
||||
elif eqIdent(key, "setFocus"):
|
||||
result.add newCall(x, tmp, x[1], ident"kxi")
|
||||
result.add newCall(key, tmp, x[1], ident"kxi")
|
||||
else:
|
||||
result.add newCall(bindSym"setAttr", tmp, newLit(key), x[1])
|
||||
elif ck != ComponentKind.Tag:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue