From 6979c9dcbdf039716c2d5179be038515e2a0600d Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sat, 11 Oct 2025 11:33:06 +0000 Subject: [PATCH] new key git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@266 b9cfdab3-6d41-4d17-bbe4-086880011989 --- include/Mw/StringDefs.h | 1 + src/core.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/Mw/StringDefs.h b/include/Mw/StringDefs.h index 5908962..c12a3b9 100644 --- a/include/Mw/StringDefs.h +++ b/include/Mw/StringDefs.h @@ -35,5 +35,6 @@ #define MwNmouseDownHandler "CmouseDownHandler" #define MwNmouseUpHandler "CmouseUpHandler" #define MwNchangedHandler "CchangedHandler" +#define MwNkeyHandler "CkeyHandler" #endif diff --git a/src/core.c b/src/core.c index c021762..03ca7dc 100644 --- a/src/core.c +++ b/src/core.c @@ -71,6 +71,7 @@ static void llkeyhandler(MwLL handle, void* data) { int key = *(int*)data; MwDispatch3(h, key, key); + MwDispatchUserHandler(h, MwNkeyHandler, data); } MwWidget MwCreateWidget(MwClass widget_class, const char* name, MwWidget parent, int x, int y, unsigned int width, unsigned int height) {