Giter Site home page Giter Site logo

Comments (4)

erez-o avatar erez-o commented on August 20, 2024 1

Reopening issue.

Did some investigating, and seems it's not advised:

Quoting from https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey

In addition to poor browser support, there are numerous concerns with the accesskey attribute:
An accesskey value can conflict with a system or browser keyboard shortcut, or assistive technology functionality.
What may work for one combination of operating system, assistive technology, and browser may not work with other combinations.
Certain accesskey values may not be present on certain keyboards, especially when internationalization is a concern. So adapting to specific languages could cause further problems.
accesskey values that rely on numbers may be confusing to individuals experiencing cognitive concerns, where the number doesn't have a logical association with the functionality it triggers.
Informing the user that accesskeys are present, so that they are aware of the functionality. If the system lacks a method of notifying the user about this feature, the user might accidentally activate accesskeys.
Because of these issues, it is generally advised not to use accesskeys for most general-purpose websites and web apps.

However, in the next update, maintainers will be able to add custom javascript snippets to their project docs, and without testing it, it's supposed to be a 1 line code:

$("#search-in-project").attr("accesskey", "s");

Leavnig issue open for now.

from docsforge.

erez-o avatar erez-o commented on August 20, 2024 1

Closing. Since version 3.4.16 custom javascript can be added to any project.

Added a accesskey example snippet to the documentation, I checked that it indeed works, so if it helps you go right ahead.

Since it's not recommended by both Mozilla and Wikipedia, I don't currently intend on adding it across site.

from docsforge.

erez-o avatar erez-o commented on August 20, 2024

Sure,

I personally never use it, but implementation seems pretty straightforward.

I'll go with your suggestion "s", and if other users want to change it in the future, it's also simple to make it customizable.

Thanks :)

from docsforge.

gennaroprota avatar gennaroprota commented on August 20, 2024

Thanks for researching the issue. The current Wikipedia entry also hints at possible problems (but Wikipedia itself uses an access key for its search box). It's not a big deal, either way.

from docsforge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.