allow switching profile in any mode

This commit is contained in:
speedie 2023-04-02 00:54:06 +02:00
parent 0a3c36fcd9
commit 909828f49c

View file

@ -49,6 +49,7 @@ static Key keys[] = {
{ -1, CONTROL, XK_Right, moveword, {.i = +1 } }, { -1, CONTROL, XK_Right, moveword, {.i = +1 } },
{ -1, 0, XK_Left, movecursor, {.i = -1 } }, { -1, 0, XK_Left, movecursor, {.i = -1 } },
{ -1, 0, XK_Right, movecursor, {.i = +1 } }, { -1, 0, XK_Right, movecursor, {.i = +1 } },
{ -1, CONTROL|SHIFT, XK_p, setprofile, {0} },
/* normal mode */ /* normal mode */
{ 0, 0, XK_i, switchmode, {0} }, { 0, 0, XK_i, switchmode, {0} },
@ -92,7 +93,6 @@ static Key keys[] = {
{ 0, SHIFT, XK_g, moveend, {0} }, { 0, SHIFT, XK_g, moveend, {0} },
{ 0, 0, XK_Next, movenext, {0} }, { 0, 0, XK_Next, movenext, {0} },
{ 0, 0, XK_Prior, moveprev, {0} }, { 0, 0, XK_Prior, moveprev, {0} },
{ 0, CONTROL|SHIFT, XK_p, setprofile, {0} },
{ 0, MODIFIER1, XK_p, navhistory, {.i = -1 } }, { 0, MODIFIER1, XK_p, navhistory, {.i = -1 } },
{ 0, MODIFIER1, XK_n, navhistory, {.i = +1 } }, { 0, MODIFIER1, XK_n, navhistory, {.i = +1 } },