Handle Control-digits specially.

* gdk/win32/gdkevents.c (gdk_event_translate): Handle
 	Control-digits specially.
This commit is contained in:
Tor Lillqvist 1999-07-03 23:31:50 +00:00
parent d5d599c229
commit 5363075ebd
9 changed files with 80 additions and 7 deletions

View File

@ -1,8 +1,13 @@
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

View File

@ -1,8 +1,13 @@
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

View File

@ -1,8 +1,13 @@
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

View File

@ -1,8 +1,13 @@
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

View File

@ -1,8 +1,13 @@
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

View File

@ -1,8 +1,13 @@
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

View File

@ -1,8 +1,13 @@
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

View File

@ -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)
{

View File

@ -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)
{