瀏覽代碼

LibGUI: TextEditor now opts in to emoji input by default :^)

Andreas Kling 5 年之前
父節點
當前提交
604fb278c1
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Libraries/LibGUI/TextEditor.cpp

+ 1 - 0
Libraries/LibGUI/TextEditor.cpp

@@ -53,6 +53,7 @@ namespace GUI {
 TextEditor::TextEditor(Type type)
 TextEditor::TextEditor(Type type)
     : m_type(type)
     : m_type(type)
 {
 {
+    set_accepts_emoji_input(true);
     set_background_role(ColorRole::Base);
     set_background_role(ColorRole::Base);
     set_foreground_role(ColorRole::BaseText);
     set_foreground_role(ColorRole::BaseText);
     set_document(TextDocument::create());
     set_document(TextDocument::create());