mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
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
This commit is contained in:
parent
9596cafea0
commit
fdc3c84b5b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259532
@ -113,6 +113,7 @@ const struct terminal_class vt_termclass = {
|
|||||||
int sc_txtmouse_no_retrace_wait;
|
int sc_txtmouse_no_retrace_wait;
|
||||||
|
|
||||||
static SYSCTL_NODE(_kern, OID_AUTO, vt, CTLFLAG_RD, 0, "Newcons parameters");
|
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(debug, 0, "Newcons debug level");
|
||||||
VT_SYSCTL_INT(deadtimer, 15, "Time to wait busy process in VT_PROCESS mode");
|
VT_SYSCTL_INT(deadtimer, 15, "Time to wait busy process in VT_PROCESS mode");
|
||||||
VT_SYSCTL_INT(suspendswitch, 1, "Switch to VT0 before suspend");
|
VT_SYSCTL_INT(suspendswitch, 1, "Switch to VT0 before suspend");
|
||||||
@ -404,6 +405,8 @@ vt_processkey(keyboard_t *kbd, struct vt_device *vd, int c)
|
|||||||
if (c & RELKEY) {
|
if (c & RELKEY) {
|
||||||
switch (c & ~RELKEY) {
|
switch (c & ~RELKEY) {
|
||||||
case (SPCLKEY | RALT):
|
case (SPCLKEY | RALT):
|
||||||
|
if (vt_enable_altgr != 0)
|
||||||
|
break;
|
||||||
case (SPCLKEY | LALT):
|
case (SPCLKEY | LALT):
|
||||||
vd->vd_kbstate &= ~ALKED;
|
vd->vd_kbstate &= ~ALKED;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user