mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-10 01:17:47 +03:00
Disable IME to allow receiving all keys
This fixes https://bugzilla.redhat.com/show_bug.cgi?id=1297640 Acked-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
parent
82589e74e6
commit
191f9a8ab4
@ -30,6 +30,7 @@
|
||||
#ifdef G_OS_WIN32
|
||||
#include <windows.h>
|
||||
#include <io.h>
|
||||
#include <imm.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -272,6 +273,12 @@ void virt_viewer_util_init(const char *appname)
|
||||
dup2(fileno(stdout), STDOUT_FILENO);
|
||||
dup2(fileno(stderr), STDERR_FILENO);
|
||||
}
|
||||
|
||||
/* Disable input method handling so that the Zenkaku_Hankaku can be passed
|
||||
* to VMs rather than being captured by Windows.
|
||||
* https://bugzilla.redhat.com/show_bug.cgi?id=1297640
|
||||
*/
|
||||
ImmDisableIME(-1);
|
||||
#endif
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
|
Loading…
Reference in New Issue
Block a user