* Changed to using sockaddr* in libtorrent's api.

* Prepared SocketManager for inclusion in the api.

* From <nornagon@gmail.com>: bound some control keys in text input.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@650 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-03-15 16:22:40 +00:00
parent 2863c10389
commit 571fe8b2f4
9 changed files with 138 additions and 27 deletions
+18
View File
@@ -66,6 +66,7 @@ TextInput::pressed(int key) {
} else {
switch (key) {
case 0x7F:
case 'h' - 'a' + 1: // ^H
case KEY_BACKSPACE:
if (m_pos != 0)
Base::erase(--m_pos, 1);
@@ -92,6 +93,23 @@ TextInput::pressed(int key) {
break;
case KEY_HOME:
m_pos = 0;
break;
case KEY_END:
m_pos = size();
break;
case 'u' - 'a' + 1: // ^U
Base::erase(0, m_pos);
m_pos = 0;
break;
case 'k' - 'a' + 1: // ^K
Base::erase(m_pos, size()-m_pos);
break;
case 0x1B:
m_alt = true;