gtk2/gdk/win32
Руслан Ижбулатов 5e6c1928b4 W32: Prefer the deadkey combinations that the OS uses
Pick the W32 API for possible deadkey+<something> combinations
and prefer these to other sources of deadkey combos.
Specifically, if W32 API supports at least one combo for a particular
deadkey, only use that data and do not attempt to do other, unsupported
combinations, even if they make sense otherwise.
This is needed to, for example, correctly support US-International
keyboard layout, which produces a combined character for <' + a>
combo, but not for <' + s>, for example.

This is achieved by stashing all the deadkeys that we find in
an array, then doing extra loop through all virtual key codes and
trying to combine them with each of these deadkeys. Any combinations
that produce a single character are cached for later use.

In GTK Simple IM context, call a new GDK W32 function to do a lookup
on that cached combination table early on, among the "special cases"
(which are now partially obsolete).

A limitation of this code is that combinations with more than
one deadkey are not supported, except for combinations that consist
entirely of 2 known deadkeys. The upshot is that lookups should
be relatively fast, as deadkey array stays small and the combination
tree stays shallow.

Note that the use of ToUnicodeEx() seems suboptimal, as it should
be possible to just load a keyboard library (KBD*.DLL) manually
and obtain and use its key table directly. However, that is much more
complicated and would result in a significant rewrite of gdkkeys-win32.
The code from this commit, though hacky, is a direct addition to
existing code and should cover vast majority of the use-cases.

https://bugzilla.gnome.org/show_bug.cgi?id=569581
2016-08-04 16:37:19 +00:00
..
rc Fix windres invocation 2012-06-19 12:16:15 +08:00
bdfcursor.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
cursor.bdf Committing changes to the source bdf font file that I forgot to commit 2007-08-17 03:40:39 +00:00
gdkcursor-win32.c win32: Make cursor code work without _gdk_display 2016-02-11 03:44:47 +01:00
gdkdevice-virtual.c win32: fix "unused variable" warning 2016-03-05 20:31:10 +01:00
gdkdevice-virtual.h GDK-Win32: Ensure sources use UNIX line endings 2013-12-04 08:57:43 +08:00
gdkdevice-win32.c win32 device: reorganize code to avoid prototypes 2016-01-23 14:43:50 +01:00
gdkdevice-win32.h W32: avoid code duplication in gdkdevice-win32|virtual 2015-12-22 09:31:56 +01:00
gdkdevice-wintab.c wintab: reorganize code to avoid prototypes 2016-01-23 14:43:47 +01:00
gdkdevice-wintab.h win32: Fix up wintab support 2012-04-03 11:37:42 +02:00
gdkdevicemanager-win32.c win32: init wintab when the device manager is constructed 2016-02-29 18:25:01 +01:00
gdkdevicemanager-win32.h win32: Stop using _gdk_display global in device code 2016-02-11 03:44:47 +01:00
gdkdisplay-win32.c win32: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkdisplay-win32.h win32: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkdisplaymanager-win32.c win32: Call windowing init from display_class_init() 2013-05-02 15:36:41 +02:00
gdkdnd-win32.c gdk/dnd: Don't use default display when getting cursor 2016-04-26 23:03:24 +08:00
gdkevents-win32.c GDK W32: Cache multiple keyboard layouts simultaneously 2016-08-04 16:37:18 +00:00
gdkgeometry-win32.c win32 geometry: reorganize code to avoid prototypes 2016-01-23 14:43:57 +01:00
gdkglcontext-win32.c GDK-Win32: Make update_stye_bits() available within the backend 2016-03-08 13:26:59 +08:00
gdkglcontext-win32.h gl: Drop profile for gdk_window_create_gl_context() 2015-02-12 12:34:28 +00:00
gdkglobals-win32.c Win32: fold the gdkinput.c file in gdkdisplay-win32.c 2016-02-22 21:45:08 +01:00
gdkkeys-win32.c W32: Prefer the deadkey combinations that the OS uses 2016-08-04 16:37:19 +00:00
gdkmain-win32.c GDK W32: Cache multiple keyboard layouts simultaneously 2016-08-04 16:37:18 +00:00
gdkmonitor-win32.c gdk/win32/gdkmonitor-win32.c: Fix build on non-GCC 2016-05-09 13:14:01 +08:00
gdkmonitor-win32.h win32: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkprivate-win32.h GDK W32: Cache multiple keyboard layouts simultaneously 2016-08-04 16:37:18 +00:00
gdkproperty-win32.c GDK W32: Optimize clipboard handling a bit 2016-03-26 00:03:50 +00:00
gdkscreen-win32.c win32: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkselection-win32.c GDK W32: Optimize clipboard handling a bit 2016-03-26 00:03:50 +00:00
gdktestutils-win32.c win32: provide an implementation for gdk_test_simulate_key(). 2014-09-22 21:22:33 -04:00
gdkwin32.h win32: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkwin32cursor.h GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkwin32display.h win32: use the same parameter name as the implementation 2015-10-08 18:07:49 +02:00
gdkwin32displaymanager.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwin32dnd.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwin32glcontext.h Add OpenGL Support for the GDK Windows Backend 2014-12-17 16:07:02 +08:00
gdkwin32id.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkwin32keys.h W32: Prefer the deadkey combinations that the OS uses 2016-08-04 16:37:19 +00:00
gdkwin32misc.h GDK/GTK on Windows: Fix build 2013-08-26 10:29:23 +08:00
gdkwin32monitor.h win32: Port to new monitor api 2016-04-27 23:18:16 -04:00
gdkwin32screen.h GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkwin32window.h GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkwindow-win32.c GDK W32: Fix dragging AeroSnap application 2016-06-05 09:00:40 +00:00
gdkwindow-win32.h GDK W32: Support UTF-16 surrogate pairs passed via VK_PACKET 2016-07-28 15:55:11 +00:00
libwntab32x.la Add headers. Add section about ActiveIMM. 2001-11-08 20:57:18 +00:00
Makefile.am Opt in to structured logging 2016-07-22 23:13:20 -04:00
makefile.msc win32: move gdkvisual code in gdkscreen 2016-02-28 11:37:38 +01:00
pktdef.h Build Wintab support always on Windows. Don't require the Wintab SDK. 2007-01-19 01:55:52 +00:00
wintab.h Build Wintab support always on Windows. Don't require the Wintab SDK. 2007-01-19 01:55:52 +00:00
xcursors.h Bug 544684 - Win64 issue, window handles are assumed to be 32-bit 2008-08-04 23:21:36 +00:00