//
// EditorWindowPopup::keyDown from 0x14017faf0 to 0x14017fb99 (169 bytes)
//
// 6 xrefs:
// > ??> @ 0x1407333d8
// > ??> @ 0x140748e80
// > ??> @ 0x14074a148
// > ??> @ 0x140766428
// > ??> @ 0x140767048
// > ??> @ 0x140918b0c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:27:36 +0000
//
void __fastcall EditorWindowPopup::keyDown(__int64 a1, unsigned int a2)
{
__int64 v2; // rbx
__int64 v5; // rcx
__int64 v6; // rcx
v2 = a1 - 344;
if ( !*(_BYTE *)(a1 + 735) )
{
v5 = qword_140909788;
if ( !qword_140909788 )
{
LABEL_5:
v6 = *(_QWORD *)(a1 + 656);
if ( v6 )
(**(void (__fastcall ***)(__int64, _QWORD))(v6 + 344))(v6 + 344, a2);
return;
}
while ( v5 != v2 )
{
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 504LL))(v5);
if ( !v5 )
goto LABEL_5;
}
}
*(_BYTE *)(a1 + 735) = 0;
if ( a2 == 13 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1216LL))(v2);
}
else if ( a2 == 27 )
{
EditorWindowPopup::blurField(v2);
}
}