Skip to content

[202_106] display the shortcut keys corresponding to the symbols in the right footer#2892

Open
Prthmsh7 wants to merge 3 commits intoMoganLab:mainfrom
Prthmsh7:202_106_display_symbol_Shortcuts
Open

[202_106] display the shortcut keys corresponding to the symbols in the right footer#2892
Prthmsh7 wants to merge 3 commits intoMoganLab:mainfrom
Prthmsh7:202_106_display_symbol_Shortcuts

Conversation

@Prthmsh7
Copy link

PR for #2886

Before :
Screenshot 2026-02-28 at 2 17 45 AM

After :
Screenshot 2026-02-28 at 2 32 56 AM

Root cause: The footer had no mechanism to look up or display keyboard shortcuts
Fix: Added get_shortcut_suffix() which calls Scheme's kbd-find-inv-binding to resolve the shortcut for symbols, and used the existing kbd_shortcut() for operations which appends the result as [Shortcut] in the right footer.

How to Test

  1. Open a document in the editor.
  2. Move the cursor to a position where a symbol is present.
  3. Verify that the right footer displays the corresponding keyboard shortcut.
  4. Move the cursor away from the symbol and confirm that the footer clears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant