Bug #1358: Make ISO_Prev_Group cycle/wrap as ISO_Next_Group does.

This commit is contained in:
Daniel Stone 2006-04-03 11:37:30 +00:00
commit 66500819b1
2 changed files with 7 additions and 2 deletions

View file

@ -756,11 +756,11 @@ unsigned char grp;
grp= state->locked_group;
if (grp>=ctrls->num_groups)
if (grp>=ctrls->num_groups || grp < 0)
state->locked_group= XkbAdjustGroup(grp,ctrls);
grp= state->locked_group+state->base_group+state->latched_group;
if (grp>=ctrls->num_groups)
if (grp>=ctrls->num_groups || grp < 0)
state->group= XkbAdjustGroup(grp,ctrls);
else state->group= grp;
XkbComputeCompatState(xkbi);