diff options
| author | Tobias Markmann <tm@ayena.de> | 2015-09-08 07:59:58 (GMT) |
|---|---|---|
| committer | Kevin Smith <kevin.smith@isode.com> | 2015-09-18 08:07:39 (GMT) |
| commit | 9be5ebf772f03cdaea50bf33b70f30dd4f1c0dd2 (patch) | |
| tree | 66594d99a94f1a23d4581c245d7829719061301c /Swift/QtUI/QtChatWindow.h | |
| parent | 950881debd593de9b6d483894246af9ad0c9b1d9 (diff) | |
| download | swift-9be5ebf772f03cdaea50bf33b70f30dd4f1c0dd2.zip swift-9be5ebf772f03cdaea50bf33b70f30dd4f1c0dd2.tar.bz2 | |
Set keyboard focus to text input after selecting an emoticon
After selecting an emoticon on Windows the keyboard focus does not
return to the text input. OS X did not exhibit that behavior.
This fix explicitly sets the focus back to the text input after
selection of an emoticon, as expected by the user.
Test-Information:
Verified the behavior on OS X 10.9.5 and Windows 7, both with
Qt 5.4.2.
Change-Id: I8737a7e3f6d1a6b7a8e60261e9bd14c7be8d07a6
Diffstat (limited to 'Swift/QtUI/QtChatWindow.h')
| -rw-r--r-- | Swift/QtUI/QtChatWindow.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatWindow.h b/Swift/QtUI/QtChatWindow.h index 19046c9..8d7db59 100644 --- a/Swift/QtUI/QtChatWindow.h +++ b/Swift/QtUI/QtChatWindow.h | |||
| @@ -18,11 +18,10 @@ | |||
| 18 | 18 | ||
| 19 | #include <SwifTools/LastLineTracker.h> | 19 | #include <SwifTools/LastLineTracker.h> |
| 20 | 20 | ||
| 21 | #include <Swift/QtUI/ChatSnippet.h> | 21 | #include <Swift/QtUI/ChatSnippet.h> |
| 22 | #include <Swift/QtUI/QtAffiliationEditor.h> | 22 | #include <Swift/QtUI/QtAffiliationEditor.h> |
| 23 | #include <Swift/QtUI/QtEmoticonsGrid.h> | ||
| 24 | #include <Swift/QtUI/QtMUCConfigurationWindow.h> | 23 | #include <Swift/QtUI/QtMUCConfigurationWindow.h> |
| 25 | #include <Swift/QtUI/QtSwiftUtil.h> | 24 | #include <Swift/QtUI/QtSwiftUtil.h> |
| 26 | #include <Swift/QtUI/QtTabbable.h> | 25 | #include <Swift/QtUI/QtTabbable.h> |
| 27 | 26 | ||
| 28 | class QTextEdit; | 27 | class QTextEdit; |
| @@ -39,10 +38,11 @@ namespace Swift { | |||
| 39 | class TreeWidget; | 38 | class TreeWidget; |
| 40 | class QtTextEdit; | 39 | class QtTextEdit; |
| 41 | class UIEventStream; | 40 | class UIEventStream; |
| 42 | class QtChatWindowJSBridge; | 41 | class QtChatWindowJSBridge; |
| 43 | class SettingsProvider; | 42 | class SettingsProvider; |
| 43 | class QtEmoticonsGrid; | ||
| 44 | 44 | ||
| 45 | class LabelModel : public QAbstractListModel { | 45 | class LabelModel : public QAbstractListModel { |
| 46 | Q_OBJECT | 46 | Q_OBJECT |
| 47 | public: | 47 | public: |
| 48 | LabelModel(QObject* parent = NULL) : QAbstractListModel(parent) {} | 48 | LabelModel(QObject* parent = NULL) : QAbstractListModel(parent) {} |
Swift