From: Amin Bandali Date: Wed, 9 May 2018 15:12:04 +0000 (-0400) Subject: [rc/rofi-pass] work around Roundcube bug in Firefox X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/commitdiff_plain/61f337f4fd3c3fc1e45be15a4922eec6931ca967 [rc/rofi-pass] work around Roundcube bug in Firefox Roundcube appears to be doing some JS magic that reacts badly with rofi-pass: selecting an entry in rofi-pass by pressing enter causes Roundcube to move focus from the username field to the password field, which completely messes up rofi-pass' autotype. Strangely enough, this doesn't happen in Chromium and I've only seen it in Firefox. --- diff --git a/rc.org b/rc.org index c85ba68..b07a51e 100644 --- a/rc.org +++ b/rc.org @@ -3459,7 +3459,7 @@ rofi.theme: /usr/share/rofi/themes//gruvbox-light.rasi # rofi command. Make sure to have "$@" as last argument _rofi () { #rofi -no-auto-select -kb-accept-entry "!Return" -i -no-levenshtein-sort "$@" - rofi -i -no-auto-select "$@" + rofi -i -no-auto-select -kb-accept-entry "!Return" "$@" } # xdotool needs the keyboard layout to be set using setxkbmap