Shortcut to place cursor in Search box?

About this bulletin board and the Pale Moon website

Moderators: Lootyhoof, FranklinDM

Locked
VLMin
Lunatic
Lunatic
Posts: 471
Joined: 2015-10-20, 17:20
Location: Earth

Shortcut to place cursor in Search box?

Post by VLMin » 2016-08-19, 23:05

Greetings! Is there a shortcut to place the cursor in the Search box? By analogy, in the wikis (Wikipedia, Wikiquote, etc.), the shortcut shift-alt-F works (in Windows, at least).

Thanks!

KNTRO

Re: Shortcut to place cursor in Search box?

Post by KNTRO » 2016-08-20, 05:24

Hi VLMin,

Is Ctrl+K what are you looking for? ;)

Best regards.

VLMin
Lunatic
Lunatic
Posts: 471
Joined: 2015-10-20, 17:20
Location: Earth

Re: Shortcut to place cursor in Search box?

Post by VLMin » 2016-08-20, 18:00

KNTRO wrote:Hi VLMin,

Is Ctrl+K what are you looking for? ;)

Best regards.
LOL, you just made realize how unclear my question was! I meant the Forum search box that appears in the upper right-hand corner of every forum page. ctrl-K (or ctrl-L or, in Windows, alt-D) lands the cursor in the browser search box (or in the address bar, if the search box has been combined or removed).

Thank you!

Best regards,

VLMin
Lunatic
Lunatic
Posts: 471
Joined: 2015-10-20, 17:20
Location: Earth

Re: Shortcut to place cursor in Search box?

Post by VLMin » 2016-08-20, 18:31

in the phpBB forum, I received this
it will work in phpbb styles if you put the correct code for it wherever the search box code is displayed.

you don't normally edit the core style files but if you did, you would open the prosilver/template/overall_header.html file in a text editor.

find:

Code: Select all

<fieldset>
					<input name="keywords" id="keywords"
replace with:

Code: Select all

<fieldset>
					<input accesskey="f" name="keywords" id="keywords"
To whomever has access to the PM Forum setup, does this (seemingly small) change workable, and is it something you would be willing to implement?

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 8850
Joined: 2012-10-09, 19:37
Location: Skaro

Re: Shortcut to place cursor in Search box?

Post by New Tobin Paradigm » 2016-08-20, 20:31

Why not.. instead of asking us to change the forum, you could use the search engine I created for the forum then do your searches from your browser with the browser search box focus key combo.
How far are you prepared to go? How much are you prepared to risk? How many people are you prepared to sacrifice for victory?
Are you willing to die friendless, alone, deserted by everyone? Because that's what may be required of you in the war that is to come.

Image

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 29203
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: Shortcut to place cursor in Search box?

Post by Moonchild » 2016-08-21, 08:01

I'm not going to change the forum to create ambiguity in browser behavior (making a shortcut key's behavior dependent on the site you visit) unless it would make sense. In this case, it does not.

If you want to search the forum, you can even (as an alternative to the forum search plugin) use Ctrl+K with DDG as search engine selected and prefix your search with !pmf
"Son, in life you do not fight battles because you expect to win, you fight them merely because they need to be fought." -- Snagglepuss
Image

VLMin
Lunatic
Lunatic
Posts: 471
Joined: 2015-10-20, 17:20
Location: Earth

Re: Shortcut to place cursor in Search box?

Post by VLMin » 2016-08-22, 19:09

That's a reasonable solution. Thanks for the tip!

KNTRO

Re: Shortcut to place cursor in Search box?

Post by KNTRO » 2016-08-22, 19:36

You can even try that right from the address bar!

Ctrl+L to focus at the address bar, and then enter, for instance, !pmf youtube html5 and hit the Enter key.

VLMin
Lunatic
Lunatic
Posts: 471
Joined: 2015-10-20, 17:20
Location: Earth

Re: Shortcut to place cursor in Search box?

Post by VLMin » 2016-08-23, 10:42

Thank you, KNTRO . I have the two bars combined, so for me ctrl-K and ctrl-L produce the same apparent result.

Best regards,

Locked