php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66402 New style prevents many browser's "search in page" function from working.
Submitted: 2014-01-03 14:13 UTC Modified: 2014-01-15 00:11 UTC
From: software at bsb dot me dot uk Assigned: bjori (profile)
Status: Wont fix Package: Website problem
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
 [2014-01-03 14:13 UTC] software at bsb dot me dot uk
Description:
------------
With JavaScript enabled, typing / moves focus to the search box.  Many browsers use / as the key to activate a "search in this page" function.  It seems a shame to take over that functionality.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-03 19:56 UTC] bjori@php.net
-Status: Open +Status: Feedback
 [2014-01-03 19:56 UTC] bjori@php.net
Which "Many browsers"?
I think you need to activate a plugin of some sorts for catching global space like that. Browser generally need a meta/function key or something (like alt or ctrl)
 [2014-01-03 21:04 UTC] software at bsb dot me dot uk
-Status: Feedback +Status: Open
 [2014-01-03 21:04 UTC] software at bsb dot me dot uk
I should probably not have said "many".  It might be just the ones I use.  On a clean Ubuntu install Firefox, Web (the Gnome browser) and Midori all take '/' to start an in-page search.

Also, "take over this functionality" is maybe too strong.  All that is taken over is the key binding; the functionality can be accessed using Ctrl+F.  It's just that I've been using '/' for so many years that I notice when a website alters the behaviour.
 [2014-01-14 10:06 UTC] marcin at ntool dot pl
I use Firefox on Linux and have exactly the same problem.
 [2014-01-14 13:45 UTC] pascal dot chevrel at free dot fr
/ is a keyboard shortcut in Firefox to search text in links, no meta key is needed. Ctrl+F searches for text in general. This was already a feature in Mozilla Suite and Netscape. I personnally don't use that feature, but just for the record, this is a similar but different feature than ctrl+F.
 [2014-01-15 00:11 UTC] bjori@php.net
-Status: Open +Status: Wont fix -Assigned To: +Assigned To: bjori
 [2014-01-15 00:11 UTC] bjori@php.net
I'd suggest to use somesort of browser script/plugin that disables webpages from "hijacking" "/".

I picked "/" specifically due its relation to searching, like all the other vi style shortcuts we added :]
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC