Solved Stop websites from reassigning Vivaldi shortcuts
-
-
As a recent Vivaldi convert, this might be the one thing that would make me switch back to another browser. Having "cmd + t" hijacked by a webpage is frustrating.
-
I just ran into this again with a webpage I have to use regularly hijacking CTRL+F and replacing it with a terrible search dialog that is riddled with problems. I feel like some shortcuts shouldn't be allowed to be hidden or modified by the page.
-
@syplex The devs agree with you, but this is a REALLY gnarly problem to untangle.
-
Any update on this? Encountering a few sites that override CTRL+F. Would be a great setting to be able to disable this.
-
My primary use case is occasions when I want to navigate away from a "greedy tab" temporarily, but it's stopping me either ctrl-tabbing or ctrl-t-ing away.
In this situation, I don't need a fully configurable shortcut-precedence thing, I could do with just having a shortcut that means (preferably) "give focus to Vivaldi itself, until I click back on the active page", or, (not quite as good) "the NEXT shortcut is meant for Vivaldi, don't pass it to the page".
Obviously this one particular shortcut would have to be "never-stealable". Perhaps you'd get an alert if a website tried to reassign it, so you'd know you might be missing something.
It would be nice if clicking in an empty part of the menu bar also activated "Vivaldi focus" mode (and you could return to "page focus" by clicking back anywhere in the page).
-
Hey all, i had the same issue and created a userscript to prevent Discourse websites from hijacking
Ctrl+F
andCmd+F
.
It works for me (i only tested in Vivaldi on macOS), so perhaps it is useful to some of you too;- Install a userscript extension like Violentmonkey or Tampermonkey
- Install the userscript: https://gist.github.com/notDavid/527feab96bfc27ee5d1df93a82ca3584
The script can quite easily be adapted to add different keyboard shortcuts...
-
-
I would love if you could specify which websites are allowed to use certain shortcuts, as described by @debiedowner
@debiedowner said in Stop websites from reassigning Vivaldi shortcuts:
If they do this, they should add Vimium-like insert mode shortcut to send shortcuts to the webpage temporarily, and exclusion rules to permanently enable sending some or all shortcuts to the page, in order not to break site functionality — some sites have useful shortcuts.
-
@tutanchamun said in Stop websites from reassigning Vivaldi shortcuts:
Hey all, i had the same issue and created a userscript to prevent Discourse websites from hijacking
Ctrl+F
andCmd+F
.
It works for me (i only tested in Vivaldi on macOS), so perhaps it is useful to some of you too;- Install a userscript extension like Violentmonkey or Tampermonkey
- Install the userscript: https://gist.github.com/notDavid/527feab96bfc27ee5d1df93a82ca3584
The script can quite easily be adapted to add different keyboard shortcuts...
Oh, that's a good idea, thanks! Didn't realise that these were simple events dispatched on the page.
-
Yes, please! This is so annoying!
@jumpsq said in Stop websites from reassigning Vivaldi shortcuts:
The Vivaldi Team responded to me with "The ability to select which keyboard shortcuts will get priority in cases like this is in our pipeline of features to implement."
I hope it's still in the pipeline.
I also like the idea of an insert mode, as described in this post
-
@tutanchamun said in Stop websites from reassigning Vivaldi shortcuts:
Hey all, i had the same issue and created a userscript to prevent Discourse websites from hijacking
Ctrl+F
andCmd+F
.
It works for me (i only tested in Vivaldi on macOS), so perhaps it is useful to some of you too;- Install a userscript extension like Violentmonkey or Tampermonkey
- Install the userscript: https://gist.github.com/notDavid/527feab96bfc27ee5d1df93a82ca3584
The script can quite easily be adapted to add different keyboard shortcuts...
This is an absolutely excellent workaround. I think implementing this to stop Google Sheets from hijacking basic navigation controls (for me, Ctrl with any of PgUp, PgDn, or number keys, though I also disabled all usage of Alt+anything so I can access menus, and I'm about to revert Ctrl-R so it reloads like a page should) has probably just permanently dropped my diastolic by ten points!
While it would be nice to have this as a core feature, right now I'm sated so long as tampermonkey transfers scripts properly via Vivaldi's browser sync implementation.
-
I would love for a setting to "prefer vivaldi shortcuts" that prioritizes Vivaldi over all websites. This could be opt-in if the team prefers the current behavior.
The next level would be checking "prefer Vivaldi" on specific shortucts.
The most bothersome one for me is cmd + shift + t is overridden by gmail (a rather popular website overriding a rather popular shortcut). I need to click a different tab first and then use the shortcut to re-open a closed tab.
I'm unfamiliar with any other browser that prioritizes that shortcut for websites over the browser ones (with no setting to disable)
-
I just started using Vivaldi and I love the customization.
But that doesn't help me, if I can't trigger the browser keybinds consistently.For example I use
ctrl + (up / down)
to switch to theprevious / next
tab. That does not work, if there is any input field focused, like a searchbar.I'll try to find a workaround, but I think if I can't find one, vivaldi is not for me.
-
This!!! By @tutanchamun said here
Hey all, i had the same issue and created a userscript to prevent Discourse websites from hijacking
Ctrl+F
andCmd+F
.
It works for me (i only tested in Vivaldi on macOS), so perhaps it is useful to some of you too;- Install a userscript extension like Violentmonkey or Tampermonkey
- Install the userscript: https://gist.github.com/notDavid/527feab96bfc27ee5d1df93a82ca3584
The script can quite easily be adapted to add different keyboard shortcuts...
-
@kvenn said in Stop websites from reassigning Vivaldi shortcuts:
I would love for a setting to "prefer vivaldi shortcuts" that prioritizes Vivaldi over all websites. This could be opt-in if the team prefers the current behavior.
This. I use a webpage regularly that blocks CTRL+F4. And I have the close tab X disabled. Making it very cumbersome and so annoying to close the tabs on my laptop using the touchpad. This same page overrides many other shortcuts as well and spits out popup errors when you try to use them. I want Vivaldi shortcuts prioritized. Ideally configurable per site but I’d take all or nothing right now.
@kvenn said in Stop websites from reassigning Vivaldi shortcuts:
I would love for a setting to "prefer vivaldi shortcuts" that prioritizes Vivaldi over all websites. This could be opt-in if the team prefers the current behavior.
The next level would be checking "prefer Vivaldi" on specific shortucts.
The most bothersome one for me is cmd + shift + t is overridden by gmail (a rather popular website overriding a rather popular shortcut). I need to click a different tab firsth and then use the shortcut to re-open a closed tab.
I'm unfamiliar with any other browser that prioritizes that shortcut for websites over the browser ones (with no setting to disable)
-
Hi, this request is not even tagged as NICE TO HAVE, so far away from IN PROCESS, means the developers work on it.
Is there any Chromium browser can do this?
Brave and Chrome cant.
I know Firefox can. -
Hi mib, do you know a way to get this prioritized?
And to answer your question:
Chrome prioritizes "core" browser shortcuts over website shortcuts. If you press cmd+shift+t, it will always re-open the last closed tab (instead of selecting the "to" line in Gmail, for example). So it's the opposite of Vivaldi's default (and therefore not an issue for most)
Also, Arc is on Chromium and supports this.
-
I see there is a section called "Browser Priority Shortcuts" (at the bottom of "Keyboard" section), does it not completely resolve this issue at the cost of manual cofiguration?
-
@eugenesv I can try, but where do you find such option ?