diff --git a/server/input.c b/server/input.c index 06b7d51..1781303 100644 --- a/server/input.c +++ b/server/input.c @@ -69,8 +69,7 @@ handle_input () // Give current screen a shot at the key first s = screenlist_current (); - w = widget_find( s, KEYS_WIDGETID ); - if( s->parent && w && w->text && strchr( w->text, key ) ) { + if( s->keys && strchr( s->keys, key ) ) { // This screen wants this key. Tell it we got one sprintf(str, "key %c\n", key); sock_send_string(s->parent->sock, str); diff --git a/server/widget.h b/server/widget.h index 7056f87..acb9aee 100644 --- a/server/widget.h +++ b/server/widget.h @@ -31,9 +31,6 @@ typedef struct widget { extern char *types[]; -// RESERVED widget ID for keys active on a screen -#define KEYS_WIDGETID "screenkeys" - widget *widget_create (); int widget_destroy (widget * w);