//
// EditorUI::keyDown from 0x10060b5c0 to 0x10060b6bd (253 bytes)
//
// 2 xrefs:
// > sub_10060B6C0 @ 0x10060b6cc
// > ??> @ 0x100ab5088
//
// 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 12:34:32 +0000
//
__int64 __fastcall EditorUI::keyDown(_QWORD **a1, int a2, double a3)
{
__int64 result; // rax
if ( a2 == 13 )
{
if ( !(*(unsigned __int8 (__fastcall **)(_QWORD *))(*a1[98] + 352LL))(a1[98])
|| (result = sub_100643A20(a1[98]), !(_BYTE)result) )
{
result = (*(__int64 (__fastcall **)(_QWORD *))(*a1[95] + 352LL))(a1[95]);
if ( (_BYTE)result )
return sub_100641110(a1[95]);
}
}
else if ( a2 == 27 )
{
if ( (*(unsigned __int8 (__fastcall **)(_QWORD *))(*a1[98] + 352LL))(a1[98])
&& (unsigned __int8)sub_1006439D0(a1[98]) )
{
return sub_100643040(a1[98]);
}
else if ( (*(unsigned __int8 (__fastcall **)(_QWORD *))(*a1[95] + 352LL))(a1[95])
&& (unsigned __int8)sub_1006410F0(a1[95]) )
{
return GJRotationControl::releaseInputFocus(a1[95]);
}
else
{
return ((__int64 (__fastcall *)(_QWORD **, __int64, __int64, double))(*a1)[164])(a1, 20067, 1, a3);
}
}
return result;
}