mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
bac769145c
Submitted by: Chia-Hsing Yu <davidyu@ken.csie.ntu.edu.tw> Update to v0.3.6.
30 lines
826 B
Plaintext
30 lines
826 B
Plaintext
--- 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 @@
|
|
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:
|
|
@@ -2197,6 +2203,7 @@
|
|
|
|
case FocusIn:
|
|
if (!TermWin.focus) {
|
|
+ send_FocusIn(Xdisplay, TermWin.parent);
|
|
TermWin.focus = 1;
|
|
#ifdef OFF_FOCUS_FADING
|
|
if( rs_fade != NULL )
|