1999-05-17 11:26:37 +00:00
|
|
|
--- src/command.c.orig Fri May 14 05:31:24 1999
|
|
|
|
+++ src/command.c Fri May 14 05:34:35 1999
|
|
|
|
@@ -2128,11 +2128,17 @@
|
1999-05-10 16:20:23 +00:00
|
|
|
static int bypass_keystate = 0;
|
|
|
|
int reportmode;
|
|
|
|
static int csrO = 0; /* Hops - csr offset in thumb/slider */
|
1999-05-17 11:26:37 +00:00
|
|
|
+ int k_status;
|
|
|
|
+ char kbuf[256];
|
1999-05-10 16:20:23 +00:00
|
|
|
|
|
|
|
/* 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:
|
1999-05-17 11:26:37 +00:00
|
|
|
@@ -2197,6 +2203,7 @@
|
1999-05-10 16:20:23 +00:00
|
|
|
|
|
|
|
case FocusIn:
|
|
|
|
if (!TermWin.focus) {
|
|
|
|
+ send_FocusIn(Xdisplay, TermWin.parent);
|
|
|
|
TermWin.focus = 1;
|
|
|
|
#ifdef OFF_FOCUS_FADING
|
|
|
|
if( rs_fade != NULL )
|