write_buf(buf, "\t\tinterpret.useModMapMods= AnyLevel;\n");
write_buf(buf, "\t\tinterpret.repeat= False;\n");
- write_buf(buf, "\t\tinterpret.locking= False;\n");
darray_foreach(interp, keymap->sym_interpret) {
char keysym_name[64];
if (interp->match & XkbSI_LevelOneOnly)
write_buf(buf,
"\t\t\tuseModMapMods=level1;\n");
- if (interp->flags & XkbSI_LockingKey)
- write_buf(buf, "\t\t\tlocking= True;\n");
if (interp->flags & XkbSI_AutoRepeat)
write_buf(buf, "\t\t\trepeat= True;\n");
SI_FIELD_VIRTUAL_MOD = (1 << 0),
SI_FIELD_ACTION = (1 << 1),
SI_FIELD_AUTO_REPEAT = (1 << 2),
- SI_FIELD_LOCKING_KEY = (1 << 3),
- SI_FIELD_LEVEL_ONE_ONLY = (1 << 4),
+ SI_FIELD_LEVEL_ONE_ONLY = (1 << 3),
};
typedef struct _SymInterpInfo {
old->interp.flags |= (new->interp.flags & XkbSI_AutoRepeat);
old->defined |= SI_FIELD_AUTO_REPEAT;
}
- if (UseNewInterpField(SI_FIELD_LOCKING_KEY, old, new, verbosity,
- &collide)) {
- old->interp.flags &= ~XkbSI_LockingKey;
- old->interp.flags |= (new->interp.flags & XkbSI_LockingKey);
- old->defined |= SI_FIELD_LOCKING_KEY;
- }
if (UseNewInterpField(SI_FIELD_LEVEL_ONE_ONLY, old, new, verbosity,
&collide)) {
old->interp.match &= ~XkbSI_LevelOneOnly;
si->defined |= SI_FIELD_AUTO_REPEAT;
}
else if (istreq(field, "locking")) {
- bool set;
-
- if (arrayNdx)
- return ReportSINotArray(info, si, field);
-
- if (!ExprResolveBoolean(keymap->ctx, value, &set))
- return ReportSIBadType(info, si, field, "boolean");
-
- if (set)
- si->interp.flags |= XkbSI_LockingKey;
- else
- si->interp.flags &= ~XkbSI_LockingKey;
-
- si->defined |= SI_FIELD_LOCKING_KEY;
+ log_dbg(info->keymap->ctx,
+ "The \"locking\" field in symbol interpretation is unsupported; "
+ "Ignored\n");
}
else if (istreq(field, "usemodmap") ||
istreq(field, "usemodmapmods")) {