Skip to content

Commit

Permalink
detail
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Mar 17, 2024
1 parent e534b92 commit 5bd7071
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/keysyms.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
struct ucs_keysym {
#include "keysyms.h"

static struct ucs_keysym {
unsigned short ucs;
unsigned short keysym;
} ucs_keysyms[] = {
Expand Down Expand Up @@ -772,7 +774,7 @@ unsigned short ucsToKeysym(int ucs) {
if (ucs_keysyms[pv].ucs < ucs)
lo = pv + 1;
else if (ucs_keysyms[pv].ucs > ucs)
hi = pv - 1;
hi = pv;
else
return ucs_keysyms[pv].keysym;
}
Expand Down

0 comments on commit 5bd7071

Please sign in to comment.