2
按下按鈕後,有什麼辦法可以檢測gtkdialog組合鍵事件嗎?我是這樣的事情之後:http://4.bp.blogspot.com/-YaHb1xQp1cA/TgCWahD0S4I/AAAAAAAACPM/YKsigh2HAIs/s1600/unity_grab_handles.png 在此先感謝!gtkdialog抓取組合鍵
按下按鈕後,有什麼辦法可以檢測gtkdialog組合鍵事件嗎?我是這樣的事情之後:http://4.bp.blogspot.com/-YaHb1xQp1cA/TgCWahD0S4I/AAAAAAAACPM/YKsigh2HAIs/s1600/unity_grab_handles.png 在此先感謝!gtkdialog抓取組合鍵
我不知道是否有幫助,但也許你可以嘗試這樣的修改:
#------------- 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);
#-------------------------------------------------------------------------------