Moved key pressing from context to keyboard

This commit is contained in:
Dorota Czaplejewicz
2019-06-19 15:27:29 +00:00
parent 40a92fe730
commit a3d745edd0
5 changed files with 14 additions and 73 deletions

View File

@ -211,7 +211,7 @@ eek_gtk_keyboard_real_button_press_event (GtkWidget *self,
(gdouble)event->y);
if (key) {
g_log("squeek", G_LOG_LEVEL_DEBUG, "emit EekKey pressed");
g_signal_emit_by_name (key, "pressed");
g_signal_emit_by_name (key, "pressed"); // TODO: set the pressed property on the key instead
eek_keyboard_press_key(priv->keyboard, key);
}
// TODO: send time