svn commit: r259532 - head/sys/dev/vt
Aleksandr Rybalko
ray at FreeBSD.org
Wed Dec 18 00:14:59 UTC 2013
Author: ray
Date: Wed Dec 18 00:14:58 2013
New Revision: 259532
URL: http://svnweb.freebsd.org/changeset/base/259532
Log:
Skip processing of R.Alt as a second Alt key, if sysctl kern.vt.enable_altgr is
not zero.
Submitted by: andreast
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/dev/vt/vt_core.c
Modified: head/sys/dev/vt/vt_core.c
==============================================================================
--- head/sys/dev/vt/vt_core.c Wed Dec 18 00:10:30 2013 (r259531)
+++ head/sys/dev/vt/vt_core.c Wed Dec 18 00:14:58 2013 (r259532)
@@ -113,6 +113,7 @@ const struct terminal_class vt_termclass
int sc_txtmouse_no_retrace_wait;
static SYSCTL_NODE(_kern, OID_AUTO, vt, CTLFLAG_RD, 0, "Newcons parameters");
+VT_SYSCTL_INT(enable_altgr, 0, "Enable AltGr key (Do not assume R.Alt as Alt)");
VT_SYSCTL_INT(debug, 0, "Newcons debug level");
VT_SYSCTL_INT(deadtimer, 15, "Time to wait busy process in VT_PROCESS mode");
VT_SYSCTL_INT(suspendswitch, 1, "Switch to VT0 before suspend");
@@ -404,6 +405,8 @@ vt_processkey(keyboard_t *kbd, struct vt
if (c & RELKEY) {
switch (c & ~RELKEY) {
case (SPCLKEY | RALT):
+ if (vt_enable_altgr != 0)
+ break;
case (SPCLKEY | LALT):
vd->vd_kbstate &= ~ALKED;
}
More information about the svn-src-all
mailing list