Ticket #4401: 4401_cinput.2.patch

File 4401_cinput.2.patch, 965 bytes (added by Vladislav Belov, 7 years ago)

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

  • 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);
     
    815818        {
    816819            GUI<int>::GetSetting(this, Message.value, m_iBufferPos);
    817820            m_iBufferPos_Tail = -1; // position change resets selection
     821            UpdateAutoScroll();
    818822        }
    819823
    820824        if (Message.value == CStr("size") ||
     
    987991                    break;
    988992            }
    989993        }
     994        UpdateAutoScroll();
    990995        break;
    991996    }
    992997