Register global keybindings.

This commit is contained in:
Martín Lucas Golini
2025-01-05 17:22:21 -03:00
parent dafd342960
commit 424b50b7e8
4 changed files with 26 additions and 4 deletions

View File

@@ -15,7 +15,6 @@
#include <eepp/ui/doc/languagessyntaxhighlighting.hpp>
#include <filesystem>
#include <iostream>
#include <nlohmann/json.hpp>
//! Plugins
#include "plugins/autocomplete/autocompleteplugin.hpp"
@@ -715,7 +714,7 @@ std::string App::getKeybind( const std::string& command ) {
auto it = mKeybindingsInvert.find( command );
if ( it != mKeybindingsInvert.end() )
return KeyBindings::keybindFormat( it->second );
return "";
return mMainLayout->getKeyBindings().getCommandKeybindString( command );
}
ProjectDirectoryTree* App::getDirTree() const {