Simplify logic for dynamic context menu label for selected text links
Refactor: move hotkeys handling into separate function
Re-align code