X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fd656d50366b26450b1535c384c84d53e1449f5..ede3a6d68af66772b4f5f94208b4126bab566cc8:/src/stc/stc.cpp diff --git a/src/stc/stc.cpp b/src/stc/stc.cpp index b3b3cd2765..ec1f9949d0 100644 --- a/src/stc/stc.cpp +++ b/src/stc/stc.cpp @@ -2408,6 +2408,12 @@ void wxStyledTextCtrl::Allocate(int bytes) { SendMsg(2446, bytes, 0); } +// Find the position of a column on a line taking into account tabs and +// multi-byte characters. If beyond end of line, return line end position. +int wxStyledTextCtrl::FindColumn(int line, int column) { + return SendMsg(2456, line, column); +} + // Start notifying the container of all key presses and commands. void wxStyledTextCtrl::StartRecord() { SendMsg(3001, 0, 0); @@ -2776,9 +2782,9 @@ void wxStyledTextCtrl::OnChar(wxKeyEvent& evt) { // be a function key or etc., the platforms appear to always give us a // small value in this case) then fallback to the ascii key code but // don't do anything for function keys or etc. - if (key <= 255) { + if (key <= 127) { key = evt.GetKeyCode(); - keyOk = (key <= 255); + keyOk = (key <= 127); } if (keyOk) { m_swx->DoAddChar(key);