From: Jan "Yenya" Kasprzak Date: Wed, 11 Jan 2012 08:07:41 +0000 (+0100) Subject: SCX::GUI: use F5 for fullscreen X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=8911d9b5230586a8ba8056167098b10258ffd283;p=slotcarman.git SCX::GUI: use F5 for fullscreen --- diff --git a/SCX/GUI.pm b/SCX/GUI.pm index 3ad230c..371f919 100755 --- a/SCX/GUI.pm +++ b/SCX/GUI.pm @@ -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 {