mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-09 19:52:31 +00:00
Added start/stop keys.
Added more extensive download status information where only tracker status used to be. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@279 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -9,7 +9,7 @@ namespace input {
|
||||
|
||||
bool
|
||||
TextInput::pressed(int key) {
|
||||
//std::stringstream str;
|
||||
std::stringstream str;
|
||||
|
||||
if (m_alt) {
|
||||
m_alt = false;
|
||||
@@ -64,19 +64,19 @@ TextInput::pressed(int key) {
|
||||
break;
|
||||
|
||||
default:
|
||||
return false;
|
||||
//return false;
|
||||
|
||||
// Testcode.
|
||||
// if (key == KEY_ENTER || key == '\n')
|
||||
// return false;
|
||||
if (key == KEY_ENTER || key == '\n')
|
||||
return false;
|
||||
|
||||
// str << "\\x" << std::hex << key;
|
||||
str << "\\x" << std::hex << key;
|
||||
|
||||
// Base::insert(m_pos, str.str());
|
||||
Base::insert(m_pos, str.str());
|
||||
|
||||
// m_pos += str.str().length();
|
||||
m_pos += str.str().length();
|
||||
|
||||
// return true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user