X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FPOSIX.cc;fp=src%2Forg%2Fxwt%2Fplat%2FPOSIX.cc;h=720ed6ca6153f29ae9c57ad6753606d0b175c93e;hb=5c261b2f4f10fdf85531d4e289828d129d464dc0;hp=52d86d986cd668a90a6b0c03eb8fff78a00084f8;hpb=90289d3799a600788feb3da16b08b8be3fceec37;p=org.ibex.core.git diff --git a/src/org/xwt/plat/POSIX.cc b/src/org/xwt/plat/POSIX.cc index 52d86d9..720ed6c 100644 --- a/src/org/xwt/plat/POSIX.cc +++ b/src/org/xwt/plat/POSIX.cc @@ -578,7 +578,6 @@ void org::xwt::plat::POSIX$X11Surface::dispatchEvent(gnu::gcj::RawData* ev) { case XK_Shift_R: s = "shift"; break; case XK_Control_L: s = "control"; break; case XK_Control_R: s = "control"; break; - case XK_Caps_Lock: s = "caps_lock"; break; case XK_Meta_L: s = "alt"; break; case XK_Meta_R: s = "alt"; break; case XK_Alt_L: s = "alt"; break; @@ -587,8 +586,9 @@ void org::xwt::plat::POSIX$X11Surface::dispatchEvent(gnu::gcj::RawData* ev) { } } - if (e->type == KeyPress) KeyPressed(JvNewStringLatin1(s)); - if (e->type == KeyRelease) KeyReleased(JvNewStringLatin1(s)); + jstring s2 = JvNewStringLatin1(s); + if (e->type == KeyPress) KeyPressed((xbe->state & LockMask) ? s2->toUpperCase() : s2); + if (e->type == KeyRelease) KeyReleased(s2); } else if (e->type == ButtonPress) { XButtonEvent* xbe = (XButtonEvent*)(e);