Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fix Qt TAB order warning #1261

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3346,16 +3346,16 @@ def __init__(self, source: Source, controller: Controller) -> None:
self.send_button.setShortcut(QKeySequence("Ctrl+Return"))
self.send_button.setDefault(True)

# Ensure TAB order from text edit -> send button
self.setTabOrder(self.text_edit, self.send_button)

# Set cursor.
self.send_button.setCursor(QCursor(Qt.PointingHandCursor))

# Add widgets to replybox
replybox_layout.addWidget(self.text_edit)
replybox_layout.addWidget(self.send_button, alignment=Qt.AlignBottom)

# Ensure TAB order from text edit -> send button
self.setTabOrder(self.text_edit, self.send_button)

# Add widgets
main_layout.addWidget(horizontal_line)
main_layout.addWidget(self.replybox)
Expand Down