Skip to content

Forward Total Commander Lister view-mode keys 1-8 to the parent Lister window - #8

Open
xrmb wants to merge 1 commit into
FrankEBailey:mainfrom
xrmb:fix-tc-view-mode-keys
Open

Forward Total Commander Lister view-mode keys 1-8 to the parent Lister window#8
xrmb wants to merge 1 commit into
FrankEBailey:mainfrom
xrmb:fix-tc-view-mode-keys

Conversation

@xrmb

@xrmb xrmb commented Jul 5, 2026

Copy link
Copy Markdown

Summary

  • The IE WebBrowser control and the RichEdit raw-source pane were consuming WM_KEYDOWN messages for the digit keys 1-8, which Total Commander uses to switch Lister view modes.
  • Added a forward_key_to_lister() helper that posts the key to the Lister window (the parent of the plugin container).
  • Intercept 1-8 and VK_NUMPAD1-VK_NUMPAD8 in both IEServerSubclassProc and TextViewSubclassProc and forward them to TC.
  • Kept the plugin''s own Ctrl+* hotkeys and internal navigation intact.

Test plan

  • Build 32-bit mdview.wlx
  • Build 64-bit mdview.wlx64
  • In Total Commander, press 1-8 in the MDView lister to switch view modes
  • Confirm plugin hotkeys (Ctrl+D, Ctrl+F, Ctrl+M, etc.) still work
  • Confirm Escape still closes the find bar/TOC/help as before

…ter window

The IE WebBrowser control and the RichEdit raw-source pane were consuming the
WM_KEYDOWN messages for the digit keys 1-8, which Total Commander uses to switch
between Lister view modes. Intercept those keys in the subclassed window
procedures and post them to the Lister window (the parent of the plugin
container) so TC can handle them again.

Fixes the 1-8 view-mode shortcuts while keeping the plugin's own Ctrl+* hotkeys
and internal navigation intact.
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