mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-05 13:49:21 +00:00
Add emacs and vi keymap config logic
* Add emacs and vi keymap config logic
This commit is contained in:
committed by
Jari Sundell
parent
ac4afeb4bc
commit
a51f367671
@@ -45,6 +45,7 @@
|
||||
|
||||
#include "control.h"
|
||||
#include "element_text.h"
|
||||
#include "root.h"
|
||||
|
||||
namespace ui {
|
||||
|
||||
@@ -52,11 +53,11 @@ ElementText::ElementText(rpc::target_type target) :
|
||||
m_window(new WindowText(target)) {
|
||||
|
||||
// Move bindings into a function that defines default bindings.
|
||||
m_bindings[KEY_LEFT] = m_bindings['B' - '@'] = std::bind(&slot_type::operator(), &m_slot_exit);
|
||||
m_bindings[KEY_LEFT] = m_bindings[control->ui()->navigation_key(RT_KEY_LEFT)] = std::bind(&slot_type::operator(), &m_slot_exit);
|
||||
|
||||
// m_bindings[KEY_UP] = std::bind(this, &ElementText::entry_prev);
|
||||
// m_bindings[KEY_DOWN] = std::bind(this, &ElementText::entry_next);
|
||||
// m_bindings[KEY_RIGHT] = m_bindings['F' - '@'] = std::bind(this, &ElementText::entry_select);
|
||||
// m_bindings[KEY_UP] = m_bindings[control->ui()->navigation_key(RT_KEY_UP)] = std::bind(this, &ElementText::entry_prev);
|
||||
// m_bindings[KEY_DOWN] = m_bindings[control->ui()->navigation_key(RT_KEY_DOWN)] = std::bind(this, &ElementText::entry_next);
|
||||
// m_bindings[KEY_RIGHT] = m_bindings[control->ui()->navigation_key(RT_KEY_RIGHT)] = std::bind(this, &ElementText::entry_select);
|
||||
}
|
||||
|
||||
ElementText::~ElementText() {
|
||||
|
||||
Reference in New Issue
Block a user