|
|
@ -230,11 +230,13 @@ insert(const char *str, ssize_t n) {
|
|
|
|
void
|
|
|
|
void
|
|
|
|
keypress(XKeyEvent *ev) {
|
|
|
|
keypress(XKeyEvent *ev) {
|
|
|
|
char buf[32];
|
|
|
|
char buf[32];
|
|
|
|
KeySym ksym;
|
|
|
|
|
|
|
|
int len;
|
|
|
|
int len;
|
|
|
|
|
|
|
|
KeySym ksym = NoSymbol;
|
|
|
|
Status status;
|
|
|
|
Status status;
|
|
|
|
|
|
|
|
|
|
|
|
len = XmbLookupString(xic, ev, buf, sizeof(buf), &ksym, &status);
|
|
|
|
len = XmbLookupString(xic, ev, buf, sizeof buf, &ksym, &status);
|
|
|
|
|
|
|
|
if(status == XBufferOverflow)
|
|
|
|
|
|
|
|
return;
|
|
|
|
if(ev->state & ControlMask) {
|
|
|
|
if(ev->state & ControlMask) {
|
|
|
|
KeySym lower, upper;
|
|
|
|
KeySym lower, upper;
|
|
|
|
|
|
|
|
|
|
|
|