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
Add command to activate extension for Vivaldi #84
Add command to activate extension for Vivaldi #84
Conversation
- Modified manifest-chrome.json to include a new command `activate_extension`. - Updated background.js to listen for the command and execute the main.js script.
Thank you for your contribution! I know this problem as it was reported in the past that shortcut keys do not work in Vivaldi, but I was surprised that this was discovered a long time ago and has not yet been fixed. Maybe you are a Vivaldi user, what is your goal in this matter?
I'm a bit worried about the latter, if there are any strange side-effects. |
The latter is ideal. However, as you mentioned, there might be potential side effects. I'm not familiar with the specifications of Chrome Extensions, so I don't have a concrete opinion on this. While the former might be useful for other Vivaldi users, it's questionable whether it has enough merit to be merged into the master. It might be a good idea to fork the repository and make changes like the former. |
I have merged it anyway, but... Considering the user ratio, I think it's not worth the risk of potential side effects by doing something that is not relevant to the majority of users. For that reason, I added build commands as a workaround. I'm not confident about this code. |
I agree. This is an issue that Vivaldi should address. Thank you for considering a solution.
https://developer.chrome.com/docs/extensions/reference/commands/#event-onCommand |
I tried in the env below, but it didn't work as expected.
|
Thank you. |
I confirmed it works!. Thank you very much. |
In Vivaldi, there's an issue where the _execute_action of Manifest V3 cannot be executed.
See: https://forum.vivaldi.net/topic/75247/extensions-keyboard-shortcuts-don-t-work/22
This pull request offers a solution to that problem. Specifically, it defines a new shortcut command that performs actions equivalent to _execute_action.
This change is intended for Vivaldi users, and ideally, we wouldn't want to merge such browser-specific modifications into the main codebase. However, repeatedly building locally to keep up with the updates of Mouse Dictionary is cumbersome...
What are your thoughts on this?