Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 510b1b5

Browse files
MortimerGorokeianhzo
authored andcommitted
Fix Paste functionality in not available for empty input fields (#2225)
1 parent 33a031c commit 510b1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ public void onSecurityChange(GeckoSession geckoSession, SecurityInformation secu
16331633

16341634
@Override
16351635
public void onShowActionRequest(@NonNull GeckoSession aSession, @NonNull Selection aSelection, @NonNull String[] aActions, @NonNull GeckoResponse<String> aResponse) {
1636-
if (StringUtils.isEmpty(aSelection.text) || (aActions.length == 1 && GeckoSession.SelectionActionDelegate.ACTION_HIDE.equals(aActions[0]))) {
1636+
if (aActions.length == 1 && GeckoSession.SelectionActionDelegate.ACTION_HIDE.equals(aActions[0])) {
16371637
// See: https://github.com/MozillaReality/FirefoxReality/issues/2214
16381638
aResponse.respond(GeckoSession.SelectionActionDelegate.ACTION_HIDE);
16391639
return;

0 commit comments

Comments
 (0)