Ticket #4401: 4401_cinput.4.patch

File 4401_cinput.4.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);
     
    585588            if (hotkey == "cut")
    586589            {
    587590                DeleteCurSelection();
     591                UpdateAutoScroll();
    588592            }
    589593        }
    590594
     
    630634            UpdateBufferPositionSetting();
    631635            DeleteCurSelection();
    632636        }
     637        UpdateAutoScroll();
    633638        return IN_HANDLED;
    634639    }
    635640    else if (hotkey == "text.delete.right")
     
    663668            UpdateBufferPositionSetting();
    664669            DeleteCurSelection();
    665670        }
     671        UpdateAutoScroll();
    666672        return IN_HANDLED;
    667673    }
    668674    else if (hotkey == "text.move.left")
     
    840846
    841847            UpdateText();
    842848        }
     849        UpdateAutoScroll();
    843850        break;
    844851    }
    845852
     
    987994                    break;
    988995            }
    989996        }
     997        UpdateAutoScroll();
    990998        break;
    991999    }
    9921000
     
    10221030        GetScrollBar(0).SetScrollBarStyle(scrollbar_style);
    10231031
    10241032        UpdateText();
     1033        UpdateAutoScroll();
    10251034        break;
    10261035    }
    10271036