diff --git a/src/renderer/App.css b/src/renderer/App.css index 05e5bb75..3b231266 100644 --- a/src/renderer/App.css +++ b/src/renderer/App.css @@ -11,6 +11,10 @@ body { font-family: 'Roboto', sans-serif; } +.hideOutlines *:focus { + outline: none; +} + .routerView { margin-left: 200px; margin-top: 80px; diff --git a/src/renderer/App.js b/src/renderer/App.js index efe9cc85..b56904b2 100644 --- a/src/renderer/App.js +++ b/src/renderer/App.js @@ -27,6 +27,11 @@ export default Vue.extend({ FtToast, FtProgressBar }, + data: function () { + return { + hideOutlines: true + } + }, computed: { isOpen: function () { return this.$store.getters.getIsSideNavOpen @@ -48,13 +53,6 @@ export default Vue.extend({ this.activateKeyboardShortcuts() this.openAllLinksExternally() } - - // try { - // const doc = yaml.safeLoad(fs.readFileSync('./static/locales/en-US.yaml')) - // console.log(doc) - // } catch (e) { - // console.log(e) - // } }, methods: { checkLocale: function () { @@ -106,6 +104,9 @@ export default Vue.extend({ activateKeyboardShortcuts: function () { $(document).on('keydown', this.handleKeyboardShortcuts) + $(document).on('mousedown', () => { + this.hideOutlines = true + }) }, handleKeyboardShortcuts: function (event) { @@ -119,6 +120,11 @@ export default Vue.extend({ break } } + switch (event.code) { + case 'Tab': + this.hideOutlines = false + break + } }, openAllLinksExternally: function () { diff --git a/src/renderer/App.vue b/src/renderer/App.vue index 67ab34f4..2157d2ae 100644 --- a/src/renderer/App.vue +++ b/src/renderer/App.vue @@ -1,5 +1,10 @@