fix: Keyboard shortcuts didn't work. Added Select all menu item

This commit is contained in:
WerWolv
2021-07-29 21:09:18 +02:00
parent c6bd6d4a3b
commit f4046fb8fc
5 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -380,9 +380,9 @@ namespace hex {
void Window::frame() {
bool pressedKeys[512] = { false };
std::copy_n(ImGui::GetIO().KeysDown, 512, this->m_prevKeysDown);
for (u16 i = 0; i < 512; i++)
pressedKeys[i] = ImGui::GetIO().KeysDown[i] && !this->m_prevKeysDown[i];
std::copy_n(ImGui::GetIO().KeysDown, 512, this->m_prevKeysDown);
for (const auto &call : View::getDeferedCalls())
call();