aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-02-10 16:46:39 +0000
committerThierry Vignaud <tv@mandriva.org>2009-02-10 16:46:39 +0000
commit21c930c315a1874ade5a6d55070272db311928c2 (patch)
tree143dc68da82ec3c5382dce46e806ed28f042ac1f
parent6627ad493200cfa085013cb3807e131fcceca409 (diff)
downloadrpmdrake-21c930c315a1874ade5a6d55070272db311928c2.tar
rpmdrake-21c930c315a1874ade5a6d55070272db311928c2.tar.gz
rpmdrake-21c930c315a1874ade5a6d55070272db311928c2.tar.bz2
rpmdrake-21c930c315a1874ade5a6d55070272db311928c2.tar.xz
rpmdrake-21c930c315a1874ade5a6d55070272db311928c2.zip
(run_treeview_dialog) add C-F accelerator in order to focus on search entry (#46404)
-rw-r--r--NEWS2
-rwxr-xr-xrpmdrake5
2 files changed, 7 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e13926c3..5a18c8d4 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
- fix using --justdb option
- MandrivaUpdate:
o warn when rebooting is needed after installing packages
+- rpmdrake:
+ o add C-F accelerator in order to focus on search entry (#46404)
Version 5.6 - 9 February 2009, Thierry Vignaud
diff --git a/rpmdrake b/rpmdrake
index 9fa48ee4..65d46195 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -617,6 +617,11 @@ sub run_treeview_dialog {
$checkbox_show_autoselect = $factory->get_widget("<main>" . strip_first_underscore(N("/_Options"), N("/_Show automatically selected packages")))
and $checkbox_show_autoselect->set_active(!$dont_show_selections->[0]);
+
+ my $accel = Gtk2::AccelGroup->new;
+ $accel->connect(Gtk2::Gdk->keyval_from_name('F'), ['control-mask'], ['visible'], sub { $find_entry->grab_focus() });
+ $w->{real_window}->add_accel_group($accel);
+
gtkadd(
$w->{window},
gtkpack_(