diff --git a/lib/styles/trackInputModality.js b/lib/styles/trackInputModality.js index 556f3ef70..5a96fab98 100644 --- a/lib/styles/trackInputModality.js +++ b/lib/styles/trackInputModality.js @@ -55,7 +55,7 @@ function setUpEventHandlers(disableFocusRingByDefault) { }; if (disableFocusRingByDefault) { - const css = 'body :focus { outline: none; }'; + const css = 'body :focus:not([modality=keyboard]) { outline: none; }'; const head = document.head || document.getElementsByTagName('head')[0]; const style = document.createElement('style');