iOS keyboard text replacements are inappropriately activated when typing in the URL field/search bar

Description of the issue:
iOS keyboard text replacements are inappropriately activated when typing in the URL field/search bar.

How can this issue be reproduced?

  1. Open the Brave browser.
  2. Select the URL field/search bar.
  3. If necessary, clear the URL field/search bar.
  4. Type a text replacement shortcut and an additional letter (which should not trigger replacement).

For example, imagine that you’ve mapped “pl” to “plastic”. (Because, DUH, you work as a plastics engineer and you type the word “plastic” all day long.) However today you are searching for plugs, so you type “plu” and Brave replaces “plu” with “plastic”. :face_with_raised_eyebrow: The only way you can type “plug” is to type “plu”, then delete “astic” and type “ug”. :face_with_symbols_over_mouth:

Text replacement should never be triggered by typing a letter after a matching shortcut string.

Expected result:
Using the previous example where you’ve mapped “pl” to “plastic” but you are searching for plugs, you type “plu” and Brave DOES NOT REPLACE “plu” with “plastic” and you are free to type “g” to input “plug”.

Text replacement should only be triggered when RETURN, SPACE, or punctuation (.,?!) is entered immediately after a matching shortcut string.

Brave Version( check About Brave):
Version 1.24 (21.4.1.15)

Mobile Device details
iPhone 11 + iOS 14.4.2

Additional Information:

  1. Inappropriate replacement is only triggered in the URL field.
  2. Inappropriate replacement is only triggered by the first string that matches a text replacement. Again using our previous example, “plu” triggers the “plastic” text replacement, but “usb plu” doesn’t.
  3. Additional spaces before the matching string don’t stop the inappropriate replacement, so " plu" is replaced with “plastic”.
  4. Additional symbols before the matching string BLOCK the replacement, so “#plu” or “@plu” are not subject to replacement.
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.