From 3ee0061de63d4c4ab4b52cd44a32e90984f22b81 Mon Sep 17 00:00:00 2001 From: Michel Pollet Date: Sat, 28 Oct 2023 07:21:42 +0100 Subject: [PATCH] Fix for missing control-XXX keys #6 These were mostly stolen by Nuklear handlers Signed-off-by: Michel Pollet --- nuklear/nuklear_xlib_gl3.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nuklear/nuklear_xlib_gl3.h b/nuklear/nuklear_xlib_gl3.h index f2cdbba..3c13d09 100644 --- a/nuklear/nuklear_xlib_gl3.h +++ b/nuklear/nuklear_xlib_gl3.h @@ -641,6 +641,7 @@ nk_x11_handle_event(XEvent *evt) nk_input_key(ctx, NK_KEY_TEXT_END, down); nk_input_key(ctx, NK_KEY_SCROLL_END, down); } else { +#if 0 // MII wants these!! if (*code == 'c' && (evt->xkey.state & ControlMask)) nk_input_key(ctx, NK_KEY_COPY, down); else if (*code == 'v' && (evt->xkey.state & ControlMask)) @@ -664,7 +665,8 @@ nk_x11_handle_event(XEvent *evt) nk_input_key(ctx, NK_KEY_TEXT_INSERT_MODE, down); else if (*code == 'r') nk_input_key(ctx, NK_KEY_TEXT_REPLACE_MODE, down); - +#endif + { char buf[32]; KeySym keysym = 0; if (XLookupString((XKeyEvent*)evt, buf, 32, &keysym, NULL) != NoSymbol) {