Add CommandManager::ShowWhichKey and include src in build

This commit is contained in:
scawful
2024-09-19 20:59:56 -04:00
parent 2857eca92d
commit 46d7dc446e
5 changed files with 39 additions and 2 deletions

View File

@@ -242,6 +242,8 @@ void EditorManager::ManageActiveEditors() {
void EditorManager::ManageKeyboardShortcuts() {
bool ctrl_or_super = (GetIO().KeyCtrl || GetIO().KeySuper);
command_manager_.ShowWhichKey();
// If CMD + R is pressed, reload the top result of recent files
if (IsKeyDown(ImGuiKey_R) && ctrl_or_super) {
static RecentFilesManager manager("recent_files.txt");