Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'aokai'

  • Loading branch information...
commit 8eb74b09561b3449da029b43a1220b54badaa894 2 parents b483fa5 + 458fcab
@danlucraft danlucraft authored
Showing with 11 additions and 3 deletions.
  1. +11 −3 plugins/project/dialogs/find_file_dialog.rb
View
14 plugins/project/dialogs/find_file_dialog.rb
@@ -23,7 +23,13 @@ def initialize
connect_signals
end
+ # All signal connection should be put here
def connect_signals
+ # row-activated is the signal for dbl clicks
+ @treeview.signal_connect("row-activated") do
+ treeview_activated
+ end
+
@entry.signal_connect("key-press-event") do |_, gdk_eventkey|
entry_key_press(gdk_eventkey)
end
@@ -52,9 +58,9 @@ def connect_signals
def entry_key_press(gdk_eventkey)
kv = gdk_eventkey.keyval
- ks = gdk_eventkey.state - Gdk::Window::MOD2_MASK
- ks = ks - Gdk::Window::MOD4_MASK
- key = Gtk::Accelerator.get_label(kv, ks)
+
+ key = Gdk::Keyval.to_name(kv)
+
if key == "Down"
treeview_select_down
true
@@ -104,6 +110,7 @@ def treeview_select_down
@treeview.scroll_to_cell(ni, nil, false, 0.0, 0.0)
end
end
+ focus = @entry
end
def treeview_select_up
@@ -114,6 +121,7 @@ def treeview_select_up
@treeview.scroll_to_cell(pi, nil, false, 0.0, 0.0)
end
end
+ focus = @entry
end
# opens the selected file
Please sign in to comment.
Something went wrong with that request. Please try again.