Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: allow [Alst+Shift+S] shortcut to launch semantic-search form at Special:Ask with keyboard only #3513

Closed
ankostis opened this issue Oct 5, 2018 · 4 comments
Labels
enhancement Alters an existing functionality or behaviour

Comments

@ankostis
Copy link

ankostis commented Oct 5, 2018

  • SMW version: 2.5.8

Problem

I don't know of a way to launch searches only with keyboard. Having to use the mouse when building queries just for clicking the submit button is not user friendly for advanced users.

Suggested enhancement

Bind accesskey="s" to the "Find results" submit button, so [Alt+Shift+S] runs the query (tested in Chrome only).

Note: "S" may mean "search", and is the same as the "Save" shortcut on mediawiki edit boxes.

Workaround:

I have put this in my mediaWiki:Common.js:

$(function () {
	// Allow to semantic-search with [Alt+Shift+S] in Special:Ask form.
	//
	$('input.smw-ask-action-btn.smw-ask-action-btn-dblue').each(function() {
		$(this).attr('accesskey', 's');
	});
});
@kghbln kghbln added the enhancement Alters an existing functionality or behaviour label Oct 6, 2018
@kghbln
Copy link
Member

kghbln commented Oct 6, 2018

Thanks a lot for suggesting this enhancement and also showing a way to do this. Indeed "s" is already taken by MW core. However we are talking about a special page here were this key should not be available.

@ankostis
Copy link
Author

After having experimented for a week with [Alt+Shift+S],
i can tell that finger-RAM jupms to [Alt+Shift+P] (preview) because running queries feels like revieing a page while editing, a much less intrusive action than S (for saving), which you press only rarely.

So eventually i've changed accesskey it to P.
(from "perform search"?)

@ankostis
Copy link
Author

ankostis commented Oct 12, 2018

Fallback to [Ctrl+S]; firefox open private browsing with 'p'.

@ankostis
Copy link
Author

Closed by mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Alters an existing functionality or behaviour
Projects
None yet
Development

No branches or pull requests

2 participants