//
// EditorWindowPopup::keyDown from 0x1004da9d0 to 0x1004daa8c (188 bytes)
//
// 7 xrefs:
// > sub_1004DAA8C @ 0x1004daa90
// > EmotePickerPopup::keyDown @ 0x1004dbd74
// > ??> @ 0x100986180
// > ??> @ 0x10098ba78
// > ??> @ 0x100990d98
// > ??> @ 0x1009921c8
// > ??> @ 0x1009a7720
//
// This function is hookable on this platform (idp: arm, 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:06:33 +0000
//
__int64 __fastcall EditorWindowPopup::keyDown(__int64 result, __int64 a2, double a3)
{
__int64 v4; // x20
v4 = result;
if ( (*(_BYTE *)(result + 1095) & 1) != 0
|| qword_100A0F8F8 && (result = sub_10034BDAC(result, qword_100A0F8F8), (_DWORD)result) )
{
*(_BYTE *)(v4 + 1095) = 0;
if ( (_DWORD)a2 == 27 )
{
return EditorWindowPopup::blurField(v4);
}
else if ( (_DWORD)a2 == 13 )
{
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1528LL))(v4);
}
}
else
{
result = *(_QWORD *)(v4 + 1016);
if ( result )
return (*(__int64 (__fastcall **)(__int64, __int64, double))(*(_QWORD *)result + 1128LL))(result, a2, a3);
}
return result;
}