1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[mujs] keyboard.c

This commit is contained in:
Witold Filipczyk 2023-04-12 17:58:26 +02:00
parent ac8b24881c
commit 72893a60a3
4 changed files with 12 additions and 2 deletions

View File

@ -1,6 +1,6 @@
top_builddir=../../../..
include $(top_builddir)/Makefile.config
OBJS = attr.o attributes.o collection.o console.o forms.o history.o implementation.o mapa.obj
OBJS = attr.o attributes.o collection.o console.o forms.o history.o implementation.o keyboard.o mapa.obj
include $(top_srcdir)/Makefile.lib

View File

@ -1 +1 @@
srcs += files('attr.c', 'attributes.c', 'collection.c', 'console.c', 'forms.c', 'history.c', 'implementation.c', 'mapa.cpp')
srcs += files('attr.c', 'attributes.c', 'collection.c', 'console.c', 'forms.c', 'history.c', 'implementation.c', 'keyboard.c', 'mapa.cpp')

View File

@ -53,6 +53,7 @@
#include <sstream>
#include <vector>
#ifndef CONFIG_LIBDOM
static void mjs_keyboardEvent_get_property_key(js_State *J);
static void mjs_keyboardEvent_get_property_keyCode(js_State *J);
@ -124,3 +125,4 @@ mjs_keyboardEvent_get_property_keyCode(js_State *J)
}
js_pushnumber(J, keyb->keyCode);
}
#endif

View File

@ -3,8 +3,16 @@
#include <mujs.h>
#ifdef __cplusplus
extern "C" {
#endif
struct term_event;
void mjs_push_keyboardEvent(js_State *J, struct term_event *ev);
#ifdef __cplusplus
}
#endif
#endif