passthrough unmatched keys
This commit is contained in:
1
ko.c
1
ko.c
@@ -203,7 +203,6 @@ transko(Im *im, Rune c)
|
||||
e.s = im->pre;
|
||||
sclear(&im->pre);
|
||||
}
|
||||
sputr(&e.s, c);
|
||||
return e;
|
||||
}
|
||||
|
||||
|
||||
10
strans.c
10
strans.c
@@ -185,10 +185,8 @@ transmap(Im *im, Rune c)
|
||||
e.s = im->pre;
|
||||
sclear(&key);
|
||||
sputr(&key, c);
|
||||
if(!maplookup(t, &key, &e.dict)){
|
||||
sputr(&e.s, c);
|
||||
if(!maplookup(t, &key, &e.dict))
|
||||
return e;
|
||||
}
|
||||
e.eat = 1;
|
||||
sputr(&e.next, c);
|
||||
return e;
|
||||
@@ -273,14 +271,16 @@ keystroke(u32int ks, u32int mod, Str *com)
|
||||
return 1;
|
||||
}
|
||||
if(ks > 0x7f || ks == ' '){
|
||||
if(im.pre.n == 0)
|
||||
return 0;
|
||||
commit(com);
|
||||
sputr(com, ks);
|
||||
reset();
|
||||
return 1;
|
||||
}
|
||||
dotrans(ks, com);
|
||||
n = dotrans(ks, com);
|
||||
show();
|
||||
return 1;
|
||||
return n;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user