diff --git a/demo/sfml_opengl3/nuklear_sfml_gl3.h b/demo/sfml_opengl3/nuklear_sfml_gl3.h index fa2bc7e..19ca8b4 100644 --- a/demo/sfml_opengl3/nuklear_sfml_gl3.h +++ b/demo/sfml_opengl3/nuklear_sfml_gl3.h @@ -442,7 +442,10 @@ nk_sfml_handle_event(sf::Event* evt) } else nk_input_motion(ctx, evt->touch.x, evt->touch.y); return 1; } else if(evt->type == sf::Event::TextEntered) { - nk_input_unicode(ctx, evt->text.unicode); + /* 8 ~ backspace */ + if (evt->text.unicode != 8) { + nk_input_unicode(ctx, evt->text.unicode); + } return 1; } else if(evt->type == sf::Event::MouseWheelScrolled) { nk_input_scroll(ctx, nk_vec2(0,evt->mouseWheelScroll.delta));