Decompile fn_17412 (BrowserAddressEditProc)
Batch #11032 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_17412 BrowserAddressEditProc: byte-identical Peer-reviewed-by: Yommy, kyoshi, StrawberrysherbetIX Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
bda03ad3ae
commit
4e42eae85a
1 changed files with 9 additions and 5 deletions
|
|
@ -15,15 +15,19 @@ void __fastcall sub_AB20F0(BSTR* address) {
|
|||
// OFFSET: 0x00AB21F0
|
||||
// FUNCTION: fn_17412
|
||||
LRESULT CALLBACK BrowserAddressEditProc(HWND window, UINT message, WPARAM value, LPARAM flags) {
|
||||
if (value == VK_RETURN) {
|
||||
if (message == WM_KEYUP || message == WM_CHAR) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (message == WM_KEYDOWN && g_windowMgr.activeBrowser) {
|
||||
switch (message) {
|
||||
case WM_KEYDOWN:
|
||||
if (value == VK_RETURN && g_windowMgr.activeBrowser) {
|
||||
SendMessageA(g_windowMgr.activeBrowser->host, WM_COMMAND, static_cast<WPARAM>(BrowserCommand::Navigate), 0);
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case WM_KEYUP:
|
||||
case WM_CHAR:
|
||||
if (value == VK_RETURN) {
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return CallWindowProcA(lpPrevWndFunc, window, message, value, flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue