mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 05:01:09 +00:00
Handle Control-digits specially.
* gdk/win32/gdkevents.c (gdk_event_translate): Handle Control-digits specially.
This commit is contained in:
parent
d5d599c229
commit
5363075ebd
@ -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>
|
1999-07-03 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
|
* 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
|
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
|
||||||
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
|
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
|
||||||
|
@ -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>
|
1999-07-03 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
|
* 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
|
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
|
||||||
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
|
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
|
||||||
|
@ -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>
|
1999-07-03 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
|
* 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
|
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
|
||||||
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
|
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
|
||||||
|
@ -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>
|
1999-07-03 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
|
* 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
|
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
|
||||||
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
|
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
|
||||||
|
@ -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>
|
1999-07-03 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
|
* 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
|
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
|
||||||
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
|
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
|
||||||
|
@ -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>
|
1999-07-03 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
|
* 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
|
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
|
||||||
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
|
bitmaps, should be multiple of 4. (Thanks to Hans Breuer for
|
||||||
|
@ -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>
|
1999-07-03 Tor Lillqvist <tml@iki.fi>
|
||||||
|
|
||||||
* gtk/makefile.{cygwin,msc}: New pthreads version. Use gettext.
|
* 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
|
* gdk/win32/gdkimage.c (gdk_image_get): bpl was set wrong for
|
||||||
bitmaps, should be multiple of 4. (Thanks to Hans Breuer 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;
|
event->key.keyval = GDK_F15; break;
|
||||||
case VK_F16:
|
case VK_F16:
|
||||||
event->key.keyval = GDK_F16; break;
|
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:
|
default:
|
||||||
if (xevent->message == WM_SYSKEYDOWN || xevent->message == WM_SYSKEYUP)
|
if (xevent->message == WM_SYSKEYDOWN || xevent->message == WM_SYSKEYUP)
|
||||||
{
|
{
|
||||||
|
@ -1528,6 +1528,25 @@ gdk_event_translate (GdkEvent *event,
|
|||||||
event->key.keyval = GDK_F15; break;
|
event->key.keyval = GDK_F15; break;
|
||||||
case VK_F16:
|
case VK_F16:
|
||||||
event->key.keyval = GDK_F16; break;
|
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:
|
default:
|
||||||
if (xevent->message == WM_SYSKEYDOWN || xevent->message == WM_SYSKEYUP)
|
if (xevent->message == WM_SYSKEYDOWN || xevent->message == WM_SYSKEYUP)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user