]> www.fi.muni.cz Git - slotcarman.git/commitdiff
SCX::GUI: use F5 for fullscreen
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 11 Jan 2012 08:07:41 +0000 (09:07 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Wed, 11 Jan 2012 08:07:41 +0000 (09:07 +0100)
SCX/GUI.pm

index 3ad230cfd5e08f4d8ff10196fdd00efabeed1d9b..371f919b85e0a6a0c134826686a70b64236583c3 100755 (executable)
@@ -66,7 +66,7 @@ use Data::Dumper;
 sub hotkey {
        my ($window, $key, $self) = @_;
 
-       if ($key->keyval == $Gtk2::Gdk::Keysyms{F5}) {
+       if ($key->keyval && $key->keyval == $Gtk2::Gdk::Keysyms{F5}) {
                if ($self->{fullscreen}) {
                        leave_fullscreen($window, $self);
                } else {