diff --git a/dlib/gui_widgets/widgets.cpp b/dlib/gui_widgets/widgets.cpp index b7d39f813..6efdef906 100644 --- a/dlib/gui_widgets/widgets.cpp +++ b/dlib/gui_widgets/widgets.cpp @@ -6527,7 +6527,7 @@ namespace dlib unsigned long state ) { - dlib::base_window::on_keydown(key,is_printable,state); + dlib::drawable_window::on_keydown(key,is_printable,state); have_last_keypress = true; next_key = key;