KennethSundqvist / key-jump-browser-extension

Easier keyboard navigation. No mouse needed to click on links and stuff.
67 stars 14 forks source link

Key configuration #59

Closed niktor76 closed 3 years ago

niktor76 commented 3 years ago

Hello! Is it possible to change the key shortcuts? I would like to switch . and ,

olivierdagenais commented 3 years ago

I found the "Extension options" dialog: image ...but:

  1. The CSS defined for it hides anything you type:
    /*
        Transparent color hides the caret in the input.
        The shortcut text is shown using the placeholder property.
    */
    color: transparent;

    ...making it very difficult to see that you did type anything (my screenshot was after I had typed in new values).

  2. Neither of the values are saved.
olivierdagenais commented 3 years ago

I opened the Google Chrome DevTools Console after opening the Options and I see this:

options.js:120 Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' blob: filesystem:".

    at Object../src/options.js (options.js:120)
    at __webpack_require__ (options.js:20)
    at options.js:84
    at options.js:87
olivierdagenais commented 3 years ago

According to microsoft/Mezzurite-DevTools#27, it looks like this could be fixed by adding the line devtool: 'source-map', to web-ext-config.js (as they did in microsoft/Mezzurite-DevTools#40)

olivierdagenais commented 3 years ago

What do you think, @KennethSundqvist ? Can you give that a try? I'm not an extension developer but I would greatly appreciate configuring the keys for this extension!

sergeevabc commented 3 years ago

Aggrrhh, How do I remove/reset a shortcut? Pressing Delete or Backspace or even Esc binds that key instead of clearing the field.

KennethSundqvist commented 3 years ago

Hi @niktor76 and @olivierdagenais.

Thank you for reporting and following up on this. And I'm sorry for the late response.

These bugs are fixed in version 5.3.1 which was released yesterday.

KennethSundqvist commented 3 years ago

Hi @sergeevabc.

There is currently no way to remove or reset a shortcut in this extension. The shortcuts are essential to using the extension, so it doesn't make sense to me to have it installed without any shortcuts.

Or are you maybe only using one of the shortcuts?

KennethSundqvist commented 3 years ago

Closing this since the original topic has been resolved in version 5.3.1.