Changeset 5985 for code/branches/console
- Timestamp:
- Oct 22, 2009, 1:36:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/libraries/core/IOConsole.cc
r5983 r5985 98 98 while (read(STDIN_FILENO, &c, 1) == 1) 99 99 { 100 if (this->escapeMode_ == First && c == '[')100 if (this->escapeMode_ == First && (c == '[' || c=='O') ) 101 101 this->escapeMode_ = Second; 102 102 // Get Alt+Tab combination when switching applications … … 108 108 else if (this->escapeMode_ == Second) 109 109 { 110 110 this->escapeSequence_ += c; 111 111 this->escapeMode_ = None; 112 112 if (this->escapeSequence_ == "A") … … 118 118 else if (this->escapeSequence_ == "D") 119 119 this->buffer_->buttonPressed(KeyEvent(KeyCode::Left, 0, 0)); 120 else if (this->escapeSequence_ == "1~" )120 else if (this->escapeSequence_ == "1~" || this->escapeSequence_ == "H") 121 121 this->buffer_->buttonPressed(KeyEvent(KeyCode::Home, 0, 0)); 122 122 else if (this->escapeSequence_ == "2~") … … 124 124 else if (this->escapeSequence_ == "3~") 125 125 this->buffer_->buttonPressed(KeyEvent(KeyCode::Delete, 0, 0)); 126 else if (this->escapeSequence_ == "4~" )126 else if (this->escapeSequence_ == "4~" || this->escapeSequence_ == "F") 127 127 this->buffer_->buttonPressed(KeyEvent(KeyCode::End, 0, 0)); 128 128 else if (this->escapeSequence_ == "5~")
Note: See TracChangeset
for help on using the changeset viewer.