[gnome-contacts] app: add Ctrl+S and Ctrl+F keybindings to focus the search entry
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] app: add Ctrl+S and Ctrl+F keybindings to focus the search entry
- Date: Wed, 21 Sep 2011 14:06:02 +0000 (UTC)
commit 15eb2215c3f63c3efd2393f973372d73c3cea3f6
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Sep 20 13:16:24 2011 -0400
app: add Ctrl+S and Ctrl+F keybindings to focus the search entry
https://bugzilla.gnome.org/show_bug.cgi?id=659624
src/contacts-app.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index d8ac39c..1d124d3 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -43,6 +43,10 @@ public class Contacts.App : Gtk.Application {
// Clear the contacts so any changed information is stored
contacts_pane.show_contact (null);
window.destroy ();
+ } else if (((event.keyval == Gdk.keyval_from_name ("s")) ||
+ (event.keyval == Gdk.keyval_from_name ("f"))) &&
+ ((event.state & Gdk.ModifierType.CONTROL_MASK) != 0)) {
+ list_pane.filter_entry.grab_focus ();
}
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]