Skip to content

Commit

Permalink
Fix examples for 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Dec 6, 2018
1 parent d930223 commit 308761d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/typing.nim
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ while window.open:
case event.key.code
of KeyCode.Escape:
window.close()
of KeyCode.Back:
of KeyCode.Backspace:
if str.len > 0:
discard str.pop()
of KeyCode.Return:
of KeyCode.Enter:
str.add Rune(10)
else: discard
of EventType.TextEntered:
Expand Down

0 comments on commit 308761d

Please sign in to comment.