Skip to content

Commit

Permalink
Consider non-printable key as commit command
Browse files Browse the repository at this point in the history
This fixes the problem reported by Mike FABIAN:
https://bugzilla.redhat.com/show_bug.cgi?id=1024421
  • Loading branch information
ueno committed Dec 16, 2013
1 parent 1c94e3e commit 6467826
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libkkc/convert-sentence-state-handler.vala
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ namespace Kkc {
state.select_sentence ();
state.reset ();

if (command == "commit")
if (command == "commit" ||
// Consider non-printable key as commit command
// FIXME: Make this check more reliable
(command == null && key.unicode == '\0'))
return true;

if (command == null &&
Expand Down

0 comments on commit 6467826

Please sign in to comment.