Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/resource.rc
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,6 @@ BEGIN
"K", IDA_QUICKSWITCHER, VIRTKEY, CONTROL, NOINVERT
"F", IDA_SEARCH, VIRTKEY, CONTROL, NOINVERT
"A", IDA_SELECT_ALL, VIRTKEY, CONTROL, NOINVERT
VK_UP, IDA_EDIT_LAST_MESSAGE, VIRTKEY, NOINVERT
END


Expand Down
13 changes: 13 additions & 0 deletions src/windows/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2135,6 +2135,19 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLin
SetFocus(msg.hwnd);
}
break;

case WM_KEYDOWN:
// Emulate a message for editing the last message to avoid
// a real accelerator capturing all up arrow input.
if (msg.wParam == VK_UP && msg.hwnd == g_pMessageEditor->m_edit_hwnd
&& GetWindowTextLength(g_pMessageEditor->m_edit_hwnd) == 0)
{
msg.hwnd = g_Hwnd;
msg.message = WM_COMMAND;
msg.lParam = 1;
msg.wParam = IDA_EDIT_LAST_MESSAGE;
}
break;
}

if (IsWindow(ProfilePopout::GetHWND()) && IsDialogMessage(ProfilePopout::GetHWND(), &msg))
Expand Down
Loading