diff --git a/resources/qml/dialogs/RoomDirectory.qml b/resources/qml/dialogs/RoomDirectory.qml
index 09d62d561276ff561a807141edfcdc97ceee8534..90475eeaf4bff570305901565373d6c03cf32656 100644
--- a/resources/qml/dialogs/RoomDirectory.qml
+++ b/resources/qml/dialogs/RoomDirectory.qml
@@ -172,6 +172,8 @@ ApplicationWindow {
             color: Nheko.colors.text
             placeholderText: qsTr("Search for public rooms")
             onTextChanged: searchTimer.restart()
+
+            Component.onCompleted: forceActiveFocus()
         }
 
         MatrixTextField {