Commit 8442d2a4 authored by Luci Stanescu's avatar Luci Stanescu

Improved tab focus in MainWindow

parent 5c56d0ae
......@@ -1353,6 +1353,14 @@ class ContactSearchListView(QListView):
self.actions.request_remote_desktop = QAction("Request Remote Desktop", self, triggered=self._AH_RequestRemoteDesktop)
self.actions.share_my_desktop = QAction("Share My Desktop", self, triggered=self._AH_ShareMyDesktop)
def focusInEvent(self, event):
super(ContactSearchListView, self).focusInEvent(event)
model = self.model()
selection_model = self.selectionModel()
if not selection_model.selectedIndexes() and model.rowCount() > 0:
selection_model.select(model.index(0, 0), selection_model.Select)
selection_model.setCurrentIndex(model.index(0, 0), selection_model.Select)
def paintEvent(self, event):
super(ContactSearchListView, self).paintEvent(event)
if self.drop_indicator_index.isValid():
......
......@@ -887,7 +887,24 @@ buttons below.</string>
</customwidgets>
<tabstops>
<tabstop>search_box</tabstop>
<tabstop>search_list</tabstop>
<tabstop>activity_note</tabstop>
<tabstop>status</tabstop>
<tabstop>display_name</tabstop>
<tabstop>switch_view_button</tabstop>
<tabstop>contact_list</tabstop>
<tabstop>back_to_contacts_button</tabstop>
<tabstop>add_search_contact_button</tabstop>
<tabstop>identity</tabstop>
<tabstop>add_contact_button</tabstop>
<tabstop>audio_call_button</tabstop>
<tabstop>im_session_button</tabstop>
<tabstop>ds_session_button</tabstop>
<tabstop>silent_button</tabstop>
<tabstop>session_list</tabstop>
<tabstop>hangup_all_button</tabstop>
<tabstop>conference_button</tabstop>
<tabstop>mute_button</tabstop>
</tabstops>
<resources/>
<connections>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment