1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/chinese/aterm/files/patch-ab

30 lines
803 B
Plaintext
Raw Normal View History

--- src/command.c.orig Mon May 10 13:06:58 1999
+++ src/command.c Mon May 10 13:09:27 1999
@@ -2069,11 +2069,17 @@
static int bypass_keystate = 0;
int reportmode;
static int csrO = 0; /* Hops - csr offset in thumb/slider */
+ int k_status;
+ char kbuf[256];
/* to give proper Scroll behaviour */
switch (ev->type) {
case KeyPress:
- lookup_key(ev);
+ k_status = send_key(Xdisplay, TermWin.parent, &ev->xkey, kbuf);
+ if(!k_status)
+ lookup_key(ev);
+ else if(kbuf[0])
+ tt_write(kbuf, strlen(kbuf));
break;
case ClientMessage:
@@ -2138,6 +2144,7 @@
case FocusIn:
if (!TermWin.focus) {
+ send_FocusIn(Xdisplay, TermWin.parent);
TermWin.focus = 1;
#ifdef OFF_FOCUS_FADING
if( rs_fade != NULL )