-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add One-Hand mice wheel scroll diff and merge #2435
Conversation
Thank you for the PR. I feel that the tooltip display is a little difficult to understand and has lost consistency with other displays. Would it be okay to delete some parts as shown below and modify it to include them in the manual instead? Next Difference |Alt+Down\nRightButton+ScrollDown\nAlt+ScrollDown |
@sdottaka 80 characters show all info in English is difficult. If you use
In Chinese, 80 characters is no problem using
|
If there is someone can rewrite the MFC/ATL CommCtrl.h
|
I am not English user, it is OK to me reduce tooltip information, for a better display layout, anyway, in Chinese it can fully presented. |
For simplicity's sake, I wanted to have just two displays, one for keyboard operations and one for mouse operations, but I merged them for now. This added operation doesn't work in the folder comparison window, image comparison window, etc., so later I may change the tooltip display depending on the active window. |
OK, I suggest providing complete usage information in at least one place on the software, because I've noticed that very few Windows users read the manual. |
…Down and other commands now work not only in the editor but also in other windows.
…SE instead of WM_MOUSE_LL (2)
…move CMouseHook::TimerProc()
The current version of WinMerge primarily supports two-handed operation. While toolbar buttons can be used with one hand, constantly shifting your gaze between the main text and the toolbar is inefficient. Some users, such as those with disabilities or those who have one hand occupied (e.g., during a phone call or while drinking), need to operate common functions efficiently with one hand.
This code introduces the following one-handed operations:
Hold the right mouse button and roll the mouse wheel up: equivalent to Alt+Up
Hold the right mouse button and roll the mouse wheel down: equivalent to Alt+Down
Hold the right mouse button and roll the mouse wheel left: equivalent to Alt+Left
Hold the right mouse button and roll the mouse wheel right: equivalent to Alt+Right
Note: If you have any global mouse stroke/gesture app running, add WinMergeU.exe to its ignore list for these shortcuts to take effect. Alternatively, you can use your global mouse gesture program to customize more functions and ignore this built-in feature.
For users who prefer using the left hand for the keyboard and the right hand for the mouse, the following shortcuts are added:
Alt + roll the mouse wheel up: equivalent to Alt+Up
Alt + roll the mouse wheel down: equivalent to Alt+Down
Alt + roll the mouse wheel left: equivalent to Alt+Left
Alt + roll the mouse wheel right: equivalent to Alt+Right
Ctrl + Alt + roll the mouse wheel left: equivalent to Ctrl+Alt+Left
Ctrl + Alt + roll the mouse wheel right: equivalent to Ctrl+Alt+Right
Additionally, for users whose mice lack horizontal scroll wheels, an alternative mode is provided:
Alt + Shift + scroll the mouse wheel up: equivalent to Alt+Left
Alt + Shift + scroll the mouse wheel down: equivalent to Alt+Right
Ctrl + Alt + Shift + scroll the mouse wheel up: equivalent to Ctrl+Alt+Left
Ctrl + Alt + Shift + scroll the mouse wheel down: equivalent to Ctrl+Alt+Right
User Tips: To keep the user interface and menus simple, these shortcuts are not added to the menu items. Only the floating tooltip text of the toolbar button shows these new shortcuts in multiple lines.
Language Translation Restrictions: The floating prompt text of the MFC CToolBar is limited to 256 UNICODE characters. Therefore, the translation context for these shortcut keys must be limited to this number of characters, as extra characters will be truncated and cannot be displayed. To reduce the number of words, you can use UNICODE characters such as emojis and direction symbols (⏬⏫🔼🔽▶️ ◀️ ) to replace text descriptions, as these symbols only take up one UNICODE character.