onblur event now works

This commit is contained in:
Andreas Rumpf 2017-03-31 14:00:23 +02:00
commit d9330cbab9
2 changed files with 5 additions and 4 deletions

View file

@ -38,7 +38,7 @@ proc editInput(i: int; d: cstring): VNode =
entries[i] = val
selectedEntry = -1
result = enterInput("todo-edit", d, onTodoChange)
#result.setOnfocuslost(proc (ev: Event; n: VNode) = selectedEntry = -1)
result.setOnfocuslost(proc (ev: Event; n: VNode) = selectedEntry = -1)
proc createEntry(i: int; d: cstring; selected: bool): VNode =
# implement caching: