From c15d840962a99d3af511a895b2e1fe34880fea8d Mon Sep 17 00:00:00 2001 From: rakshasa Date: Sat, 5 Mar 2005 02:05:12 +0000 Subject: [PATCH] Fixing bad backspace handling for some remote shells. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@324 e378c898-3ddf-0310-93e7-cc216c733640 --- src/input/text_input.cc | 2 +- src/ui/download_list.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input/text_input.cc b/src/input/text_input.cc index 3c1b65a8..e0732710 100644 --- a/src/input/text_input.cc +++ b/src/input/text_input.cc @@ -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); diff --git a/src/ui/download_list.cc b/src/ui/download_list.cc index b2a9f54d..0b48fc7d 100644 --- a/src/ui/download_list.cc +++ b/src/ui/download_list.cc @@ -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); }