https://bugs.winehq.org/show_bug.cgi?id=53243
Bug ID: 53243 Summary: Ctrl-number keys type the number, instead of sending Ctrl-number Product: Wine Version: 7.11 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: emendelson@mac.com
Ctrl-number (Ctrl-2, Ctrl-6, etc.) types the number, does not send Ctrl-2, Ctrl-6, etc.
In macOS Monterey (Intel), with wine-devel installed via Brew, and testing with the 64-bit version of the vDos MS-DOS emulator. The MS-DOS word processor WordPerfect for DOS uses Ctrl-2 and Ctrl-6, but with vDos under Wine, Ctrl-2 types "2" in the editing window and Ctrl-6 types "3" in the editing window. Ctrl-letter keys like Ctrl-C and Ctrl-V work correctly; only Ctrl-number keys don't work.
Ctrl-number keys work correctly in the DOSBox-X emulator on the same Mac. They only fail to work under vDos.
Is it possible to fix this?
https://bugs.winehq.org/show_bug.cgi?id=53243
Edward Mendelson emendelson@mac.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |winemac.drv
--- Comment #1 from Edward Mendelson emendelson@mac.com --- The component is probably winemac.drv. I should have specified this earlier.
https://bugs.winehq.org/show_bug.cgi?id=53243
--- Comment #2 from Edward Mendelson emendelson@mac.com --- The relevant code is of course in dlls/winemac.drv/keyboard.c - possibly around lines 1600-1700 or that neighborhood. I can't see anything obvious that causes Ctrl-alpha keys to work correctly but not Ctrl-number keys, but maybe a real programmer will see what's happening.
https://bugs.winehq.org/show_bug.cgi?id=53243
--- Comment #3 from Edward Mendelson emendelson@mac.com --- And this does not seem to be a problem in WordPerfect for Windows running under Wine. It's only a problem in WordPerfect for Windows running under vDos.exe. I will explore this with the vDos author.
https://bugs.winehq.org/show_bug.cgi?id=53243
--- Comment #4 from Edward Mendelson emendelson@mac.com --- And the problem does not occur at the vDos DOS prompt, only in WordPerfect. When I use the SCODE.COM utility at the vDos DOS prompt, it says that I've typed Ctrl-2, not Ctrl-6. Something weird seems to be going on in WordPerfect's keyboard, which only applies to Ctrl-numbers in vDos under Wine...
So the priority of this report should probably be zero.
https://bugs.winehq.org/show_bug.cgi?id=53243
--- Comment #5 from Edward Mendelson emendelson@mac.com --- The vDos programmer tested this and reports:
---------------------
This is reported pressing Ctrl-2 running under Windows:
uAct flags0: 4, flags1: 1, flagsw: 0, mode: 10, scancode: 3, type: 100, unicode: 0
Under Wine:
uAct flags0: 4, flags1: 1, flagsw: 0, mode: 10, scancode: 3, type: 100, unicode: 32
Wine reports an Unicode (actual character), likewise for Ctrl-6.
An easy fix would be to let the keyboard routine first check if Ctrl is down. If so, set the Unicode parameter 0. No Ctrl key combination would result in a character?
----------------------
Does this sound like something that can be changed in Wine? If Ctrl is down, set Unicode parameter to 0??
Thanks for any help with this.