mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 20:22:31 +00:00
* 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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user