Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5985


Ignore:
Timestamp:
Oct 22, 2009, 1:36:48 PM (15 years ago)
Author:
scheusso
Message:

KEY HOME and END now also work on my laptop ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/libraries/core/IOConsole.cc

    r5983 r5985  
    9898        while (read(STDIN_FILENO, &c, 1) == 1)
    9999        {
    100             if (this->escapeMode_ == First && c == '[')
     100            if (this->escapeMode_ == First && (c == '[' || c=='O') )
    101101                this->escapeMode_ = Second;
    102102            // Get Alt+Tab combination when switching applications
     
    108108            else if (this->escapeMode_ == Second)
    109109            {
    110                                 this->escapeSequence_ += c;
     110                this->escapeSequence_ += c;
    111111                this->escapeMode_ = None;
    112112                if      (this->escapeSequence_ == "A")
     
    118118                else if (this->escapeSequence_ == "D")
    119119                    this->buffer_->buttonPressed(KeyEvent(KeyCode::Left,     0, 0));
    120                 else if (this->escapeSequence_ == "1~")
     120                else if (this->escapeSequence_ == "1~" || this->escapeSequence_ == "H")
    121121                    this->buffer_->buttonPressed(KeyEvent(KeyCode::Home,     0, 0));
    122122                else if (this->escapeSequence_ == "2~")
     
    124124                else if (this->escapeSequence_ == "3~")
    125125                    this->buffer_->buttonPressed(KeyEvent(KeyCode::Delete,   0, 0));
    126                 else if (this->escapeSequence_ == "4~")
     126                else if (this->escapeSequence_ == "4~" || this->escapeSequence_ == "F")
    127127                    this->buffer_->buttonPressed(KeyEvent(KeyCode::End,      0, 0));
    128128                else if (this->escapeSequence_ == "5~")
Note: See TracChangeset for help on using the changeset viewer.