This commit is contained in:
Vincent Wei
2022-11-08 17:23:02 +08:00
parent d78b493aad
commit c8c6f470ce
+2 -2
View File
@@ -2159,7 +2159,7 @@ SLEditCtrlProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
return 0;
}
if (charBuffer[0] == '\b') { //backspace
if (chars == 1 && charBuffer[0] == '\b') { //backspace
int del;
if (sled->editPos == 0 && sled->selStart == sled->selEnd)
@@ -2184,7 +2184,7 @@ SLEditCtrlProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
sleInsertText (hWnd, sled, NULL, del);
}
}
else{
else {
if (dwStyle & ES_LEFT) {
esleft_input_char_refresh(hWnd, sled, (char*)charBuffer, chars);
set_edit_caret_pos(hWnd, sled);