really check if we press control when we check for Ctrl+h or Ctrl+i in roster
This commit is contained in:
parent
616125d95e
commit
c6dd2d6666
|
@ -3510,7 +3510,7 @@ class RosterWindow:
|
||||||
not gajim.config.get('quit_on_roster_x_button'):
|
not gajim.config.get('quit_on_roster_x_button'):
|
||||||
self.tooltip.hide_tooltip()
|
self.tooltip.hide_tooltip()
|
||||||
self.window.hide()
|
self.window.hide()
|
||||||
elif gtk.gdk.CONTROL_MASK and event.keyval == gtk.keysyms.i:
|
elif event.state & gtk.gdk.CONTROL_MASK and event.keyval == gtk.keysyms.i:
|
||||||
treeselection = self.tree.get_selection()
|
treeselection = self.tree.get_selection()
|
||||||
model, list_of_paths = treeselection.get_selected_rows()
|
model, list_of_paths = treeselection.get_selected_rows()
|
||||||
for path in list_of_paths:
|
for path in list_of_paths:
|
||||||
|
@ -3520,7 +3520,7 @@ class RosterWindow:
|
||||||
account = model[path][C_ACCOUNT].decode('utf-8')
|
account = model[path][C_ACCOUNT].decode('utf-8')
|
||||||
contact = gajim.contacts.get_first_contact_from_jid(account, jid)
|
contact = gajim.contacts.get_first_contact_from_jid(account, jid)
|
||||||
self.on_info(widget, contact, account)
|
self.on_info(widget, contact, account)
|
||||||
elif gtk.gdk.CONTROL_MASK and event.keyval == gtk.keysyms.h:
|
elif event.state & gtk.gdk.CONTROL_MASK and event.keyval == gtk.keysyms.h:
|
||||||
treeselection = self.tree.get_selection()
|
treeselection = self.tree.get_selection()
|
||||||
model, list_of_paths = treeselection.get_selected_rows()
|
model, list_of_paths = treeselection.get_selected_rows()
|
||||||
if len(list_of_paths) != 1:
|
if len(list_of_paths) != 1:
|
||||||
|
|
Loading…
Reference in New Issue