2012-01-06 44 views

回答

1

我不知道是否有幫助,但也許你可以嘗試這樣的修改:

#------------- Accelerators -------------------------------------------------------- 

#------------- Accelerator Objects --------------------------------------------- 
my $accel = Gtk2::AccelGroup->new(); 
#------------------------------------------------------------------------------- 

#------------- Accelerator Shortcuts ------------------------------------------- 
my ($key, $mods) = Gtk2::Accelerator->parse('<alt>T'); 
#------------------------------------------------------------------------------- 

#------------- Accelerator connecting ------------------------------------------ 
$accel->connect($key, $mods, [qw/visible/], sub { ifKeyTranslateGUI($clipboardSearchButton); }); 
#------------------------------------------------------------------------------- 

#------------- Accelerator adding to window ------------------------------------ 
$mainWindow->add_accel_group ($accel); 
#-------------------------------------------------------------------------------