From 308761d9e4bc33b5fb240b6a0cc6d781e7e4dc3d Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Sat, 1 Dec 2018 23:24:14 +0100 Subject: [PATCH] Fix examples for 2.5 --- examples/typing.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/typing.nim b/examples/typing.nim index b07c945..f91083b 100644 --- a/examples/typing.nim +++ b/examples/typing.nim @@ -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: