Commit 5363075e authored by Tor Lillqvist's avatar Tor Lillqvist

Handle Control-digits specially.

	* gdk/win32/gdkevents.c (gdk_event_translate): Handle
 	Control-digits specially.
parent d5d599c2
1999-07-04 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents.c (gdk_event_translate): Handle
Control-digits specially.
1999-07-03 Tor Lillqvist <tml@iki.fi>
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
1999-06-28 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
......
1999-07-04 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents.c (gdk_event_translate): Handle
Control-digits specially.
1999-07-03 Tor Lillqvist <tml@iki.fi>
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
1999-06-28 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
......
1999-07-04 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents.c (gdk_event_translate): Handle
Control-digits specially.
1999-07-03 Tor Lillqvist <tml@iki.fi>
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
1999-06-28 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
......
1999-07-04 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents.c (gdk_event_translate): Handle
Control-digits specially.
1999-07-03 Tor Lillqvist <tml@iki.fi>
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
1999-06-28 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
......
1999-07-04 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents.c (gdk_event_translate): Handle
Control-digits specially.
1999-07-03 Tor Lillqvist <tml@iki.fi>
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
1999-06-28 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
......
1999-07-04 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents.c (gdk_event_translate): Handle
Control-digits specially.
1999-07-03 Tor Lillqvist <tml@iki.fi>
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
1999-06-28 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
......
1999-07-04 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkevents.c (gdk_event_translate): Handle
Control-digits specially.
1999-07-03 Tor Lillqvist <tml@iki.fi>
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
Mon Jun 28 10:03:07 1999 Tor Lillqvist <tml@iki.fi>
1999-06-28 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
......
......@@ -1528,6 +1528,25 @@ gdk_event_translate (GdkEvent *event,
event->key.keyval = GDK_F15; break;
case VK_F16:
event->key.keyval = GDK_F16; break;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
if (GetKeyState (VK_CONTROL) < 0)
/* Control-digits won't come in as a WM_CHAR */
event->key.keyval = GDK_0 + (xevent->wParam - '0');
else
{
ignore_WM_CHAR = FALSE;
event->key.keyval = GDK_VoidSymbol;
}
break;
default:
if (xevent->message == WM_SYSKEYDOWN || xevent->message == WM_SYSKEYUP)
{
......
......@@ -1528,6 +1528,25 @@ gdk_event_translate (GdkEvent *event,
event->key.keyval = GDK_F15; break;
case VK_F16:
event->key.keyval = GDK_F16; break;
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
if (GetKeyState (VK_CONTROL) < 0)
/* Control-digits won't come in as a WM_CHAR */
event->key.keyval = GDK_0 + (xevent->wParam - '0');
else
{
ignore_WM_CHAR = FALSE;
event->key.keyval = GDK_VoidSymbol;
}
break;
default:
if (xevent->message == WM_SYSKEYDOWN || xevent->message == WM_SYSKEYUP)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment