summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-08 22:20:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-08 22:20:27 +0300
commitf019a9e52d0a3f5ca23681d5eb36bb2e56d37064 (patch)
tree33c4f14a56d1327b361dcc681712cfc105a7701e /src/gui/popups
parent13b08d35c2d96ae734da14ab58d6263287e342c9 (diff)
downloadmv-f019a9e52d0a3f5ca23681d5eb36bb2e56d37064.tar.gz
mv-f019a9e52d0a3f5ca23681d5eb36bb2e56d37064.tar.bz2
mv-f019a9e52d0a3f5ca23681d5eb36bb2e56d37064.tar.xz
mv-f019a9e52d0a3f5ca23681d5eb36bb2e56d37064.zip
Allow control popup menu by up/down keys.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp15
-rw-r--r--src/gui/popups/popupmenu.h6
2 files changed, 21 insertions, 0 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index f6a2959bd..eb2144de3 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -3035,3 +3035,18 @@ void PopupMenu::showGMPopup()
showPopup(getX(), getY());
}
+
+void PopupMenu::moveUp()
+{
+ mBrowserBox->moveSelectionUp();
+}
+
+void PopupMenu::moveDown()
+{
+ mBrowserBox->moveSelectionDown();
+}
+
+void PopupMenu::select()
+{
+ mBrowserBox->selectSelection();
+}
diff --git a/src/gui/popups/popupmenu.h b/src/gui/popups/popupmenu.h
index c98e6a26e..da0f59847 100644
--- a/src/gui/popups/popupmenu.h
+++ b/src/gui/popups/popupmenu.h
@@ -148,6 +148,12 @@ class PopupMenu final : public Popup, public LinkHandler
void clear();
+ void moveUp();
+
+ void moveDown();
+
+ void select();
+
private:
void setMousePos();