Fix regression: Key-Combos in Shortcuts Mapper displayed incorrectly
Fix #13554
This commit is contained in:
parent
bc7d6b26a4
commit
0457a112c7
|
@ -1036,7 +1036,7 @@ void ScintillaKeyMap::showCurrentSettings()
|
|||
|
||||
void ScintillaKeyMap::updateListItem(int index)
|
||||
{
|
||||
::SendDlgItemMessage(_hSelf, IDC_LIST_KEYS, LB_INSERTSTRING, index, reinterpret_cast<LPARAM>(toString(index).c_str()));
|
||||
::SendDlgItemMessage(_hSelf, IDC_LIST_KEYS, LB_INSERTSTRING, index, reinterpret_cast<LPARAM>(string2wstring(toString(index), CP_UTF8).c_str()));
|
||||
::SendDlgItemMessage(_hSelf, IDC_LIST_KEYS, LB_DELETESTRING, index+1, 0);
|
||||
}
|
||||
|
||||
|
@ -1059,7 +1059,7 @@ intptr_t CALLBACK ScintillaKeyMap::run_dlgProc(UINT Message, WPARAM wParam, LPAR
|
|||
|
||||
for (size_t i = 0; i < _size; ++i)
|
||||
{
|
||||
::SendDlgItemMessage(_hSelf, IDC_LIST_KEYS, LB_ADDSTRING, 0, reinterpret_cast<LPARAM>(toString(i).c_str()));
|
||||
::SendDlgItemMessage(_hSelf, IDC_LIST_KEYS, LB_ADDSTRING, 0, reinterpret_cast<LPARAM>(string2wstring(toString(i), CP_UTF8).c_str()));
|
||||
}
|
||||
::SendDlgItemMessage(_hSelf, IDC_LIST_KEYS, LB_SETCURSEL, 0, 0);
|
||||
|
||||
|
@ -1161,7 +1161,7 @@ intptr_t CALLBACK ScintillaKeyMap::run_dlgProc(UINT Message, WPARAM wParam, LPAR
|
|||
{
|
||||
if (res == static_cast<int32_t>(oldsize))
|
||||
{
|
||||
::SendDlgItemMessage(_hSelf, IDC_LIST_KEYS, LB_INSERTSTRING, static_cast<WPARAM>(-1), reinterpret_cast<LPARAM>(toString(res).c_str()));
|
||||
::SendDlgItemMessage(_hSelf, IDC_LIST_KEYS, LB_INSERTSTRING, static_cast<WPARAM>(-1), reinterpret_cast<LPARAM>(string2wstring(toString(res), CP_UTF8).c_str()));
|
||||
}
|
||||
else
|
||||
{ //update current generic_string, can happen if it was disabled
|
||||
|
|
Loading…
Reference in New Issue