ecode: Display the keybindings of some commands I forgot to add the keybind display.

This commit is contained in:
Martín Lucas Golini
2026-06-15 13:25:22 -03:00
parent 3fa38a2574
commit b83c21bfdd

View File

@@ -3365,9 +3365,13 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
auto menu = cevent->getMenu();
UIPopUpMenu* compareMenu = UIPopUpMenu::New();
compareMenu->add( i18n( "compare_to_ellipsis", "Compare to..." ) )
compareMenu
->add( i18n( "compare_to_ellipsis", "Compare to..." ), nullptr,
getKeybind( "compare-to" ) )
->setId( "compare-to" );
compareMenu->add( i18n( "compare_with_clipboard", "Compare with clipboard" ) )
compareMenu
->add( i18n( "compare_with_clipboard", "Compare with clipboard" ), nullptr,
getKeybind( "compare-with-clipboard" ) )
->setId( "compare-with-clipboard" );
menu->addSeparator();
@@ -3376,12 +3380,12 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
if ( ext == "md" || ext == "markdown" ) {
menu->addSeparator();
menu->add( i18n( "show_markdown_preview", "Show Markdown Live Preview" ),
findIcon( "filetype-md" ) )
findIcon( "filetype-md" ), getKeybind( "show-markdown-preview" ) )
->setId( "show-markdown-preview" );
} else if ( ext == "diff" || ext == "patch" ) {
menu->addSeparator();
menu->add( i18n( "show_diff_preview", "Show Diff Preview" ),
findIcon( "filetype-diff" ) )
findIcon( "filetype-diff" ), getKeybind( "show-diff-preview" ) )
->setId( "show-diff-preview" );
}
} );