t key is supported in both window and zoom mode ##panels (#13863)

This commit is contained in:
Vanellope 2019-04-22 22:41:47 +09:00 committed by radare
parent 062a114d9c
commit 4acc6d6540

View File

@ -926,6 +926,7 @@ static int cursorThreshold(RPanel* panel) {
static bool handleZoomMode(RCore *core, const int key) {
RPanels *panels = core->panels;
RPanel *cur = getCurPanel (panels);
r_cons_switchbuf (false);
switch (key) {
case 'Q':
@ -936,6 +937,18 @@ static bool handleZoomMode(RCore *core, const int key) {
case 'c':
activateCursor (core);
break;
case 't':
if (cur->model->rotateCb) {
cur->model->rotateCb (core, false);
cur->view->refresh = true;
}
break;
case 'T':
if (cur->model->rotateCb) {
cur->model->rotateCb (core, true);
cur->view->refresh = true;
}
break;
case ';':
case ' ':
case 'b':
@ -1032,6 +1045,7 @@ static void handleComment(RCore *core) {
static bool handleWindowMode(RCore *core, const int key) {
RPanels *panels = core->panels;
RPanel *cur = getCurPanel (panels);
r_cons_switchbuf (false);
switch (key) {
case 'Q':
@ -1108,6 +1122,18 @@ static bool handleWindowMode(RCore *core, const int key) {
case 'N':
createNewPanel (core, false);
break;
case 't':
if (cur->model->rotateCb) {
cur->model->rotateCb (core, false);
cur->view->refresh = true;
}
break;
case 'T':
if (cur->model->rotateCb) {
cur->model->rotateCb (core, true);
cur->view->refresh = true;
}
break;
case ':':
case ';':
case 'd':
@ -4273,14 +4299,12 @@ repeat:
break;
case 't':
if (cur->model->rotateCb) {
RPanel *cur = getCurPanel (panels);
cur->model->rotateCb (core, false);
cur->view->refresh = true;
}
break;
case 'T':
if (cur->model->rotateCb) {
RPanel *cur = getCurPanel (panels);
cur->model->rotateCb (core, true);
cur->view->refresh = true;
}