mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Focus text in text entry of overlay text message
This commit is contained in:
@@ -684,6 +684,12 @@ namespace BlackGui
|
||||
ui->lep_textMessages->setVisible(show);
|
||||
}
|
||||
|
||||
void CTextMessageComponent::focusTextEntry()
|
||||
{
|
||||
if (!ui->lep_textMessages->isVisible()) { return; }
|
||||
ui->lep_textMessages->setFocus();
|
||||
}
|
||||
|
||||
void CTextMessageComponent::removeAllMessagesTab()
|
||||
{
|
||||
ui->tw_TextMessages->removeTab(0);
|
||||
|
||||
@@ -75,6 +75,9 @@ namespace BlackGui
|
||||
//! Show an text entry field
|
||||
void showTextMessageEntry(bool show);
|
||||
|
||||
//! Focus the text entry field
|
||||
void focusTextEntry();
|
||||
|
||||
//! Remove the all tab, the operation cannot be undone
|
||||
void removeAllMessagesTab();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user