Skip to content
Snippets Groups Projects
Commit 423290a0 authored by Capucine Berthet's avatar Capucine Berthet Committed by Aline Gondim Santos
Browse files

emojiPicker: automatic keyboard focus

GitLab: #1220
Change-Id: I848b5352b8214c2112dddc8e69b7bc96d0e372e7
parent 3195fa9b
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,8 @@ Popup {
focus: true
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
onClosed: messageBar.textAreaObj.forceActiveFocus()
// Close the picker when attached to a listView that receives height/scroll
// property changes.
property real listViewHeight: listView ? listView.height : 0
......@@ -45,6 +47,7 @@ Popup {
function openEmojiPicker() {
root.open();
emojiPickerWebView.runJavaScript("prepare_to_show(" + JamiTheme.darkTheme + ");");
emojiPickerWebView.forceActiveFocus();
}
function closeEmojiPicker() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment