[PATCH] user32: edit controls should ignore WM_KEYDOWN on control + enter.
Lei Zhang
thestig at google.com
Fri Apr 25 11:11:42 CDT 2008
On Fri, Apr 25, 2008 at 6:07 AM, Vitaliy Margolen
<wine-devel at kievinfo.com> wrote:
>
> Lei Zhang wrote:
> > On Thu, Apr 24, 2008 at 10:22 PM, Lei Zhang <thestig at google.com> wrote:
> >> Hi,
> >>
> >> This should be the last bit in getting control + enter working in
> >> multiline edit controls. I attempted to write a test for this using
> >> SendInput() or SetKeyState() + SendMessage(), but I couldn't get seem
> >> to simulate holding down the control key.
> >>
> >
> Should work. You can also look at keybd_event() how it does it. It's pretty
> much a wrapper around SendInput().
> All you'll need is keybd_event(VK_CONTROL, 0, 0, 0); to press it. And
> keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0); to release it.
>
I tried that too. Also tried SetFocus(hedit) first. No luck.
More information about the wine-devel
mailing list