diff options
| author | trustable-code <krauter.simon@arcor.de> | 2017-10-15 20:40:36 +0200 |
|---|---|---|
| committer | trustable-code <krauter.simon@arcor.de> | 2017-10-15 20:40:36 +0200 |
| commit | 0fb2e474141dfe45a69644a3ba92fc83e65e34e7 (patch) | |
| tree | 942cadfc07ec826681a1b318d203c0d724d6e2b4 /src/nigui/private/windows | |
| parent | 6123e9c55321e9066821fb7220dff40e2b174872 (diff) | |
| download | NiGui-0fb2e474141dfe45a69644a3ba92fc83e65e34e7.tar.gz NiGui-0fb2e474141dfe45a69644a3ba92fc83e65e34e7.zip | |
Add WindowKeyEvent.cancel, remove ControlDisposeEvent.cancel
- Add WindowKeyEvent.cancel
- Remove ControlDisposeEvent.cancel
Diffstat (limited to 'src/nigui/private/windows')
| -rwxr-xr-x | src/nigui/private/windows/platform_impl.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nigui/private/windows/platform_impl.nim b/src/nigui/private/windows/platform_impl.nim index 4ee1ab5..dbe6d7c 100755 --- a/src/nigui/private/windows/platform_impl.nim +++ b/src/nigui/private/windows/platform_impl.nim @@ -231,6 +231,8 @@ proc pHandleWMKEYDOWNOrWMCHAR(window: Window, control: Control, unicode: int, ke windowEvent.character = unicode.pUnicodeCharToUtf8 window.handleKeyDownEvent(windowEvent) + if windowEvent.cancel: + return true if control != nil: var controlEvent = new ControlKeyEvent |
