summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-10-01 01:33:00 +0200
committerChristian Persch <chpe@gnome.org>2015-10-07 22:35:42 +0200
commitb9597d6fe5accf929db5cd71daf524ba540edcf3 (patch)
tree7b95700f585d8e4503a538aee0f9c95668006a58
parent401d18e91bea12a0cf2e0c0b00605d99c1b372fd (diff)
downloadvte-b9597d6fe5accf929db5cd71daf524ba540edcf3.tar.gz
a11y: Emit missing space character insertion
When backspacing over space, content comparison would not find any difference, so vte always emits a space character deletion by hand, so that screen readers speak it, see bug 150858. That however makes the announced text incoherent, thus confusing brltty. This commit adds emitting a space character insertion, to get back to coherent content. https://bugzilla.gnome.org/show_bug.cgi?id=150858 https://bugzilla.gnome.org/show_bug.cgi?id=754964 (cherry picked from commit 17c23b253eb96227d036768ebbf101930aadec73)
-rw-r--r--src/vteaccess.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vteaccess.cc b/src/vteaccess.cc
index e33b3fdd..c5c64141 100644
--- a/src/vteaccess.cc
+++ b/src/vteaccess.cc
@@ -441,6 +441,8 @@ vte_terminal_accessible_text_modified(VteTerminal *terminal, gpointer data)
old, caret_offset, 1);
priv->snapshot_text = saved_text;
priv->snapshot_characters = saved_characters;
+ emit_text_changed_insert(G_OBJECT(accessible),
+ old, caret_offset, 1);
}