From b83c21bfddb318b1458cbda8262eed373afd79c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Mon, 15 Jun 2026 13:25:22 -0300 Subject: [PATCH] ecode: Display the keybindings of some commands I forgot to add the keybind display. --- src/tools/ecode/ecode.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/tools/ecode/ecode.cpp b/src/tools/ecode/ecode.cpp index 419d6cea8..6ee61776c 100644 --- a/src/tools/ecode/ecode.cpp +++ b/src/tools/ecode/ecode.cpp @@ -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" ); } } );