aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-01-06 13:50:28 +0000
committerThomas White <taw@bitwiz.org.uk>2012-01-06 13:50:28 +0000
commit668e837ca2c1c2374a8dba730cd11d73beaf1d46 (patch)
treee66d15a4d08288c02405743c31d722f63dedaf7e /src/mainwindow.c
parentf63c8dd67114d18eb2a6bf203b1a0c603517200d (diff)
Fix a bug where "b" did not respond
Diffstat (limited to 'src/mainwindow.c')
-rw-r--r--src/mainwindow.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwindow.c b/src/mainwindow.c
index 0862e81..e8e3ec2 100644
--- a/src/mainwindow.c
+++ b/src/mainwindow.c
@@ -700,7 +700,11 @@ static gboolean im_commit_sig(GtkIMContext *im, gchar *str,
struct presentation *p)
{
if ( p->editing_object == NULL ) {
- printf("IM keypress: %s\n", str);
+ if ( str[0] == 'b' ) {
+ check_toggle_blank(p);
+ } else {
+ printf("IM keypress: %s\n", str);
+ }
return FALSE;
}
if ( p->editing_object->type != OBJ_TEXT ) return FALSE;