Merge branch 'dead-hamza' into 'main'

imcontextsimple: Handle dead_hamza

See merge request GNOME/gtk!7699
This commit is contained in:
Matthias Clasen 2024-09-08 22:58:11 +00:00
commit e9a046c439
2 changed files with 3 additions and 1 deletions

View File

@ -1605,6 +1605,7 @@ gtk_check_algorithmically (const guint *compose_buffer,
CASE (U, 0x367);
CASE (small_schwa, 0x1DEA);
CASE (capital_schwa, 0x1DEA);
CASE (hamza, 0x654);
#undef CASE
default:
g_string_append_unichar (input, gdk_keyval_to_unicode (compose_buffer[i]));

View File

@ -532,7 +532,7 @@ beep_surface (GdkSurface *surface)
static inline gboolean
is_dead_key (guint keysym)
{
return GDK_KEY_dead_grave <= keysym && keysym <= GDK_KEY_dead_greek;
return GDK_KEY_dead_grave <= keysym && keysym <= GDK_KEY_dead_hamza;
}
static void
@ -599,6 +599,7 @@ append_dead_key (GString *string,
CASE (U, 0x367, 1);
CASE (small_schwa, 0x1dea, 1);
CASE (capital_schwa, 0x1dea, 1);
CASE (hamza, 0x621, 0);
#undef CASE
default:
g_string_append_unichar (string, gdk_keyval_to_unicode (keysym));