6 ms·
Right up there with hijacking Ctrl-F.
by pupppet 3y ago
Right up there with hijacking Ctrl-F.
- grishka 3y agoI just don't get it why browsers allow websites to override their own hotkeys. I'm sure it even required extra code to be written to work correctly. Linear hijacks Cmd+F for example, very helpfully providing some terrible thing instead of my browser's built-in search that works the same everywhere. (it's the same Linear that thinks you can't not want wysiwyg markdown editing)
- nsinreal 3y agoWell, for Ctrl+F there is sometimes a reason. Many websites uses technique called virtualization of lists. That boosts performance, but standard Ctrl+F doesn't works anymore properly
- BasieP2 3y agoI know of 2 websites that do this. 1. Confluence It's super annoying and takes up a lot of screen space 2. Nexus It simply kills it. You can use ctrl-f but it simply will not find text right in front of you.. Really i see no valid case
- rasz 3y agogithub code editor is a big one
- PennRobotics 3y agoDOS emulator and Vim emulator, and that's almost all I can imagine. Maybe games that would use the control key as an additional input---but in the browser???
- aitchnyu 3y agoThe good sites allow you to hit ctrl f twice to get browser's find feature.
- oneeyedpigeon 3y ago'Find in page' is now so broken on modern websites that the keyboard shortcut is the last of our problems.
- PennRobotics 3y agoBitwarden. "Find in page" will only show a result if it is visible on the page (even though the scrollbar indicates the full vault has loaded, and even after scrolling down to the desired result and then back up). They have a "Search vault" field that works fine, so it's not a major inconvenience, but the first few times I've Ctrl+F'd a newly added site and gotten "Phrase not found" when I know I added credentials? That's a mild anxiety I'd rather not have. I could be convinced there's a security-related reason for this---in fact, I never really thought about it until now---but then I'd assume anyone able to get access to your vault can use Selenium and fill in the "Search vault" input field.
- LM358 3y agoI don't think anyone here can imagine my bewilderment, confusion, and ultimately anger, the day I discovered that in the web interface for Outlook, Ctrl+V is the default shortcut for... send email. I would very much like to know what went through their heads when they decided on that. On further thought, maybe I don't.
- Lio 3y agoMy personal hate is when webpages rebind scrolling to zoom. I haven't used a mouse in almost 15 years. It's a constant source of annoyance when I try to scroll something with a map with my trackpad and it goes crazy zooming in and out.
- stn_za 3y agoSo much this.
- tom_ 3y agoAnd overriding Ctrl+K without even being so good as to give way when you type it a second time. Assholes.
- oneeyedpigeon 3y agoWe're talking about you, Slack. (At least I can now remember which app is the one that breaks Cmd-K, but it's still annoying that I have to think that little bit longer to recall that info. every single time I press Cmd-K anywhere)
- lukeholder 3y agoStripe docs do that and it annoys me to no end. They let you use the native search if you press ctrl+f a second time but since there is a delay it causes chaos.
- dugite-code 3y agoHell just hijacking any standard browser controls is infuriating when it catches you out when you're just not paying complete attention. Edit: Apparently Firefox has the `permissions.default.shortcuts` config option UNKNOWN: Services.perms.UNKNOWN_ACTION [0] ALLOW: Services.perms.ALLOW_ACTION [1] BLOCK: Services.perms.DENY_ACTION [2] PROMPT: Services.perms.PROMPT_ACTION [3] And in the site information panel you can disable the Override keyboard shortcuts permission on a per-site basis. Neat, doesn't solve the paste override issue though. Source: https://support.mozilla.org/en-US/questions/1241294#answer-1175070 https://support.mozilla.org/en-US/questions/1241294#answer-1...
- crtasm 3y agoA huge thanks for making me aware of this. permissions.default.shortcuts firmly set to 2.
- strbean 3y agoRecently learned that if you Ctrl-F again after the highjacking, it brings up the browser search box. Discovered this thanks to a site (don't remember which) that included a tooltip about this fact in their hijacked search box. I was curious if it would work on Redocly search, which has no such tooltip, and it did. I'm not positive if this works universally, or is just an undocumented feature of Redocly's interface and won't work in places the developers didn't make specific accommodations for it. Env: Chrome + OSX or Windows.
- notamy 3y agoCtrl-G and F3 often work to bypass that ime
- dugite-code 3y agoI honestly didn't know about Ctrl-G. You my have significantly changed my life!
- dylan604 3y agoisn't ctrl-g common for "find next" with shift-ctrl-g "find previous"? maybe i live too much in my IDE/text editors?
- kayodelycaon 3y agoOn macOS cmd+g is a standard shortcut most apps implement.
- dylan604 3y agoyeah, i substituted to ctrl from my normal cmd to not confuse people
- dugite-code 3y agoAlmost certainly, but It's one of of these "I can't believe I never knew this, it's so obvious!" things.
- dylan604 3y agoIn that case, I'd highly recommend browsing through the drop down menus for any of your apps. It is very common* for the keyboard shortcut to be listed, and very frustrating when it is not. This is my primary source for finding these shortcuts for a new app. * maybe it's a Mac thing???
- Andrex 3y agoIn my head Ctrl+G is a shortcut for "Ctrl+F with the last result I searched for."
- dylan604 3y agoThere's a lot of keyboard shortcuts that mean one thing in the browser but something totally different in another application. Now that it is common for many of these other applications to now be a web app, these keyboard short cuts are possible to start colliding. Take GoogDocs as an example. Do you want the browser's find or the app's find if you hit ctrl-f in a Doc/Sheet/etc? The vast majority of the users want the app's. Reading a news site, most people would probably expect ctrl-f for the browser's search. Just pointing out that hard rules will always have exceptions. Except for the TFA's point of copy/paste. Stop manipulating my clipboard with bullshit marketing/tracking bullshit!!!!!!!
- 8338550bff96 3y agoThen the vast majority of users are wrong. The correct answer is for it be the browser's find. Maybe apps could bind their find/search to ctrl-s since it is incorrect for browsers to bind this to save-page anyway.
- dylan604 3y agowhy is all of the sudden ctrl-s wrong by the browser?? you make no sense here. you've never needed to save a web page? i guess i'm showing my age, while i don't use it daily, it has been a valuable feature for many reasons before. Edit: >Then the vast majority of users are wrong. I strongly disagree, and people unwilling to be flexible ruins the experience as those people tend to be the minority
- pinkmuffinere 3y agoYou’re absolutely correct though, the parent comment seems to think there are absolute right and wrong answers for UI. I think that’s just not true, a good UI is one that works for your customers.
- 8338550bff96 3y agoHey, man. I'm just dispensing justice. I don't make the rules
- makeitdouble 3y agoThere are semi-legitimate cases where this is warranted. For instance when looking at a Notion database, standard Ctrl-F is almost useless, and document search needs to go through the notion API to return results, sometimes even related to the entries that are displayed on screen. I say "semi-legitimate" because I actually wish they'd map to a different shortcut, but can see the case for user wanted the remapping. This of course stems from earlier decisions to have that document handling style in the first place. IMHO it becomes a complex debate when on line between an online application and a webpage.
- AA-BA-94-2A-56 3y agoShouldn’t CMD+F be reserved to searching the current document/context? Something like CMD+K should be used for a more global search.
- easton 3y agoYou cant use those keys (Super+) in the browser AFAIK. The operating system expects to use them for keyboard shortcuts. (Guessing on macOS Cmd+V is actually triggering a clipboard event in JS, the site can’t actually see that you pressed Cmd+V)
- deleted 3y ago[deleted]
- AA-BA-94-2A-56 3y agoStripe’s API documentation does this and it gives me the shits, because it seizes up my M2 MacBook Pro for several seconds. I can’t believe that it’s 2024, and I can’t simply grep some documentation.
- deleted 3y ago[deleted]
- ytpete 3y agoCmd-L followed by Cmd-F will always get you the real browser search, at least.
- deleted 3y ago[deleted]
- dotancohen 3y agoThe Vimperator/Tridactyl (Firefox VI shortcuts extension) search / is not hijacked on the Stripe API documention.
- bovine3dom 3y agoFWIW, the / search isn't part of Tridactyl but we do inject some code that frees up / from most websites so Firefox can use it. It's possible to write your own user script to do it (you just need to add a keypress event handler that does preventDefault() and maybe stopPropagation()) with no need for Tridactyl :)
- SushiHippie 3y agoBut it still doesn't seem to work on GitHub, did you whitelist GitHub for the preventDefault or is GitHub just a bit extra when it comes to hijacking keybinds?
- bovine3dom 3y agoIt works sometimes on GitHub, it's just a bit extra as you said. GitHub is what annoyed me enough to make the feature in the first place. It used to work reliably but they made it worse :(
- gardnr 3y agoJeff Atwood has an opinion: https://meta.discourse.org/t/options-to-disable-hijack-of-cmd-f-ctrl-f-and-keys-for-search/16875/17 https://meta.discourse.org/t/options-to-disable-hijack-of-cm...
- int_19h 3y agoThis is the biggest reason why I hate Discourse.