Ticket #4401: 4401_cinput.3.patch

File 4401_cinput.3.patch, 1.4 KB (added by Vladislav Belov, 7 years ago)

Adds the AutoScroll on tab/paste/pageup/pagedown/dblclick/remove

  • source/gui/CInput.cpp

     
    461461
    462462        case SDLK_PAGEUP:
    463463            GetScrollBar(0).ScrollMinusPlenty();
     464            UpdateAutoScroll();
    464465            break;
    465466
    466467        case SDLK_PAGEDOWN:
    467468            GetScrollBar(0).ScrollPlusPlenty();
     469            UpdateAutoScroll();
    468470            break;
    469471        /* END: Message History Lookup */
    470472
     
    551553            UpdateText(m_iBufferPos, m_iBufferPos, m_iBufferPos+1);
    552554
    553555            m_iBufferPos += (int)wcslen(text);
     556            UpdateAutoScroll();
    554557            UpdateBufferPositionSetting();
    555558
    556559            sys_clipboard_free(text);
     
    588591            }
    589592        }
    590593
     594        UpdateAutoScroll();
     595
    591596        return IN_HANDLED;
    592597    }
    593598    else if (hotkey == "text.delete.left")
     
    630635            UpdateBufferPositionSetting();
    631636            DeleteCurSelection();
    632637        }
     638
     639        UpdateAutoScroll();
     640
    633641        return IN_HANDLED;
    634642    }
    635643    else if (hotkey == "text.delete.right")
     
    663671            UpdateBufferPositionSetting();
    664672            DeleteCurSelection();
    665673        }
     674
     675        UpdateAutoScroll();
     676
    666677        return IN_HANDLED;
    667678    }
    668679    else if (hotkey == "text.move.left")
     
    815826        {
    816827            GUI<int>::GetSetting(this, Message.value, m_iBufferPos);
    817828            m_iBufferPos_Tail = -1; // position change resets selection
     829            UpdateAutoScroll();
    818830        }
    819831
    820832        if (Message.value == CStr("size") ||
     
    987999                    break;
    9881000            }
    9891001        }
     1002        UpdateAutoScroll();
    9901003        break;
    9911004    }
    9921005