Skip to content

Commit

Permalink
FIRE-33735: Option to suppress emoji chooser window from automaticall…
Browse files Browse the repository at this point in the history
…y popping up while typing in chat bars
  • Loading branch information
PanteraPolnocy committed Mar 3, 2024
1 parent 746bc58 commit 5a0b671
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
8 changes: 8 additions & 0 deletions indra/llui/llemojihelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ bool LLEmojiHelper::isActive(const LLUICtrl* ctrl_p) const
// static
bool LLEmojiHelper::isCursorInEmojiCode(const LLWString& wtext, S32 cursorPos, S32* pShortCodePos)
{
// <FS:PP> FIRE-33735: Option to suppress emoji chooser window from automatically popping up while typing in chat bars
static LLCachedControl<bool> FSSuppressEmojiWindowPopupWhileTyping(*LLUI::getInstance()->mSettingGroups["config"], "FSSuppressEmojiWindowPopupWhileTyping");
if (FSSuppressEmojiWindowPopupWhileTyping)
{
return false;
}
// </FS:PP>

// If the cursor is currently on a colon start the check one character further back
S32 shortCodePos = (cursorPos == 0 || L':' != wtext[cursorPos - 1]) ? cursorPos : cursorPos - 1;

Expand Down
11 changes: 11 additions & 0 deletions indra/newview/app_settings/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26748,5 +26748,16 @@ Change of this parameter will affect the layout of buttons in notification toast
<key>Value</key>
<integer>1</integer>
</map>
<key>FSSuppressEmojiWindowPopupWhileTyping</key>
<map>
<key>Comment</key>
<string>Suppress emoji chooser window from automatically popping up while typing in chat bars.</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
</map>
</map>
</llsd>
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@
<check_box label="Automatische Namensvorhersage in „Chat in der Nähe“-Eingabezeile aktivieren" name="FSChatbarNamePrediction"/>
<check_box name="AllowMUpose" label="„:“ als Synonym für &quot;/me&quot; verwenden"/>
<check_box name="AutoCloseOOC" label="((OOC))-Klammern automatisch schließen"/>
<check_box name="FSShowIMSendButton" label="Senden-Button in Eingabezeile für IM-Sitzungen anzeigen"/>
<check_box name="FSShowEmojiButton" label="Emoji-Button in Eingabezeile für Lokaler Chat IM-Sitzungen anzeigen"/>
<check_box name="FSShowIMSendButton" label="Senden-Button in Eingabezeile für IM-Sitzungen anzeigen"/>
<check_box name="FSNearbyChatbar" label="Eingabezeile zum Fenster Lokaler Chat hinzufügen"/>
<check_box name="FSShowChatChannel" label="Kanalauswahl in Eingabezeile anzeigen"/>
<check_box name="FSShowChatType" label="Chat-Typ/Senden-Button anzeigen"/>
Expand Down
14 changes: 11 additions & 3 deletions indra/newview/skins/default/xui/en/panel_preferences_chat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -910,9 +910,9 @@
top_pad="1"
height="16"
width="400"
control_name="FSShowIMSendButton"
name="FSShowIMSendButton"
label="Show send chat button in chat bar for IM sessions"/>
control_name="FSSuppressEmojiWindowPopupWhileTyping"
name="FSSuppressEmojiWindowPopupWhileTyping"
label="Suppress emoji chooser window from automatically popping up while typing in chat bars"/>
<check_box
layout="topleft"
top_pad="1"
Expand All @@ -921,6 +921,14 @@
control_name="FSShowEmojiButton"
name="FSShowEmojiButton"
label="Show emoji button in chat bar for IM sessions and Nearby Chat"/>
<check_box
layout="topleft"
top_pad="1"
height="16"
width="400"
control_name="FSShowIMSendButton"
name="FSShowIMSendButton"
label="Show send chat button in chat bar for IM sessions"/>
<check_box
layout="topleft"
top_pad="1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@
<check_box label="Włącz automatyczne odgadywanie imion w pasku czatu w pobliżu" name="FSChatbarNamePrediction"/>
<check_box name="AllowMUpose" label="&quot;:&quot; synonimem dla &quot;/me&quot;"/>
<check_box name="AutoCloseOOC" label="Domykaj ((nawiasy)) dla czatu OOC"/>
<check_box name="FSShowIMSendButton" label="Pokaż przycisk wysyłania wiadomości w pasku czatu dla sesji IM"/>
<check_box name="FSSuppressEmojiWindowPopupWhileTyping" label="Wyłącz automatyczne wyświetlanie okna wyboru emoji podczas pisania w paskach czatu"/>
<check_box name="FSShowEmojiButton" label="Pokaż przycisk emoji w pasku czatu dla sesji IM i czatu w pobliżu"/>
<check_box name="FSShowIMSendButton" label="Pokaż przycisk wysyłania wiadomości w pasku czatu dla sesji IM"/>
<check_box name="FSNearbyChatbar" label="Dodaj pasek czatu do okna czatu w pobliżu"/>
<check_box name="FSShowChatChannel" label="Oferuj ręczny wybór kanału w pasku czatu"/>
<check_box name="FSShowChatType" label="Pokaż typ czatu i przycisk wysyłania"/>
Expand Down

0 comments on commit 5a0b671

Please sign in to comment.