diff --git a/libr/core/panels.c b/libr/core/panels.c index 260b44c67a..0b114c1a0c 100644 --- a/libr/core/panels.c +++ b/libr/core/panels.c @@ -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; }