//
// EditorWindowPopup::keyDown from 0xcda108 to 0xcda198 (144 bytes)
//
// 8 xrefs:
// > EmotePickerPopup::keyDown @ 0xcb8e68
// > `non-virtual thunk to'EditorWindowPopup::keyDown @ 0xcda19c
// > ??> @ 0xf3a00
// > ??> @ 0x14eb448
// > ??> @ 0x14fb288
// > ??> @ 0x14fbae8
// > ??> @ 0x1501798
// > ??> @ 0x1502398
//
// 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 13:06:32 +0000
//
__int64 __fastcall EditorWindowPopup::keyDown(__int64 a1, __int64 a2, long double a3)
{
__int64 result; // x0
result = (unsigned __int8)EditorWindowPopup::fieldHoldsKeys((EditorWindowPopup *)a1);
if ( (_BYTE)result )
{
*(_BYTE *)(a1 + 1095) = 0;
if ( (_DWORD)a2 == 13 )
{
return (*(__int64 (__fastcall **)(__int64, long double))(*(_QWORD *)a1 + 1528LL))(a1, a3);
}
else if ( (_DWORD)a2 == 27 )
{
return EditorWindowPopup::blurField((EditorWindowPopup *)a1);
}
}
else
{
result = *(_QWORD *)(a1 + 1016);
if ( result )
return (*(__int64 (__fastcall **)(__int64, __int64, long double))(*(_QWORD *)result + 1128LL))(result, a2, a3);
}
return result;
}