keyboard: Fix check for extended keys

The existing check tested for non-existent properties.

https://bugzilla.gnome.org/show_bug.cgi?id=683546
This commit is contained in:
Florian Müllner 2012-09-24 18:04:12 +02:00
parent 6c1bd95643
commit f8ce788425

View File

@ -289,7 +289,7 @@ const Keyboard = new Lang.Class({
// Showing an extended key popup and clicking a key from the extended keys
// will grab focus, but ignore that
if (focus && (focus._extended_keys || (focus._key && focus._key.extended_key)))
if (focus && (focus._extended_keys || focus.extended_key))
return;
// Ignore focus changes caused by message tray showing/hiding