|
Tell me what mapping you would like and I'll add it for you.
I thought maybe I could return XK_cent, but that didn't work either.
--- key.c.bak 2004-12-16 16:17:37.000000000 -0500
+++ key.c 2004-12-16 18:14:59.356102541 -0500
@@ -87,12 +87,12 @@
/* now need to do the right thing with every keysym possibility,
*as minimum:
*/
- if ((*keysym == XK_Return) || (*keysym == XK_Linefeed))
+ if ((*keysym == XK_Linefeed) || (*keysym == XK_Control_R))
{
*fieldcount = 0;
return K_ENTER;
}
- else if (*keysym == XK_KP_Enter)
+ else if ((*keysym == XK_Return) || (*keysym == XK_KP_Enter))
{
return K_FIELDEXIT;
}
@@ -118,6 +118,10 @@
*/
}
}
+ else if (*keysym == XK_Control_L)
+ {
+ return K_RESET;
+ }
else if ((*keysym >= XK_Shift_L) && (*keysym <= XK_Hyper_R))
{
return (-1); /* do nothing because its a modifier key */
@@ -317,11 +321,18 @@
}
else if (*keysym == XK_Escape)
{
- return K_ATTENTION;
+ if ((report->xkey.state & ShiftMask) != 0)
+ {
+ return K_SYSREQ;
+ }
+ else
+ {
+ return K_ATTENTION;
+ }
}
else if (*keysym == XK_End)
{
- return K_END;
+ return K_NEWLINE;
}
else if (*keysym == XK_Delete)
{As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.