fix left/right arrow keys for tab switching on Windows and Linux

This commit is contained in:
Stefan Frederik 2022-01-11 22:57:55 +01:00
parent f5decdb952
commit da27141112
1 changed files with 4 additions and 4 deletions

View File

@ -1321,15 +1321,15 @@ int callback(const char *winpath, int event, int mx, int my, KeySym key,
if(xctx->semaphore >= 2) break;
delete(1/* to_push_undo */);break;
}
if(key==XK_Left && state == ControlMask) /* previous tab */
if(key==XK_Left && (state & ControlMask)) /* previous tab */
{
tcleval("prev_tab");
}
if(key==XK_Right && state == ControlMask) /* next tab */
if(key==XK_Right && (state & ControlMask)) /* next tab */
{
tcleval("next_tab");
}
if(key==XK_Right && state == 0) /* left */
if(key==XK_Right && !(state & ControlMask)) /* left */
{
if(waves_selected(event, key, state, button)) {
waves_callback(event, mx, my, key, button, aux, state);
@ -1340,7 +1340,7 @@ int callback(const char *winpath, int event, int mx, int my, KeySym key,
redraw_w_a_l_r_p_rubbers();
break;
}
if(key==XK_Left && state == 0) /* right */
if(key==XK_Left && !(state & ControlMask)) /* right */
{
if(waves_selected(event, key, state, button)) {
waves_callback(event, mx, my, key, button, aux, state);