add find keyboard shortcut

This commit is contained in:
scawful
2024-07-20 09:21:04 -04:00
parent ed770b925c
commit f2de827f91

View File

@@ -321,7 +321,10 @@ void MasterEditor::ManageKeyboardShortcuts() {
status_ = current_editor_->Redo();
}
// TODO: If CMD + F is pressed, open a search dialog
if (ImGui::IsKeyDown(ImGuiKey_F) &&
(ImGui::GetIO().KeyCtrl || ImGui::GetIO().KeySuper)) {
status_ = current_editor_->Find();
}
}
void MasterEditor::DrawFileDialog() {