mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 14:12:31 +00:00
* Moved handling of events from DownloadList into ElementDownloadList
and WindowLog. * Added bindings to input::TextInput and disabled other bindings while it is active. * ^K now sets ignore_commands. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@750 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -61,10 +61,10 @@ Manager::erase(Bindings* b) {
|
||||
|
||||
void
|
||||
Manager::pressed(int key) {
|
||||
if (m_textInput != NULL && m_textInput->pressed(key))
|
||||
return;
|
||||
|
||||
std::find_if(begin(), end(), std::bind2nd(std::mem_fun(&Bindings::pressed), key));
|
||||
if (m_textInput != NULL)
|
||||
m_textInput->pressed(key);
|
||||
else
|
||||
std::find_if(rbegin(), rend(), std::bind2nd(std::mem_fun(&Bindings::pressed), key));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user