mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 19:22:29 +00:00
Fixing bad backspace handling for some remote shells.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@324 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -32,7 +32,7 @@ TextInput::pressed(int key) {
|
||||
|
||||
} else {
|
||||
switch (key) {
|
||||
case 0x08:
|
||||
case 0x7F:
|
||||
case KEY_BACKSPACE:
|
||||
if (m_pos != 0)
|
||||
Base::erase(--m_pos, 1);
|
||||
|
||||
@@ -219,6 +219,7 @@ DownloadList::bind_keys(input::Bindings* b) {
|
||||
(*b)[KEY_DOWN] = sigc::mem_fun(*this, &DownloadList::receive_next);
|
||||
(*b)[KEY_RIGHT] = sigc::mem_fun(*this, &DownloadList::receive_view_download);
|
||||
|
||||
(*b)['\x7f'] = sigc::mem_fun(*this, &DownloadList::receive_view_input);
|
||||
(*b)[KEY_BACKSPACE] = sigc::mem_fun(*this, &DownloadList::receive_view_input);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user