Ability to bring focus to the address bar to edit the url/enter a new url. #132
Comments
If it helps, (ctrl+L), (ctrl+E), and (ctrl+K) all already brings focus to the address bar in Firefox. |
WebExtensions API doesn’t let us access to the address bar. It’s possible using macros though. |
I think it would be a really, really fantastic feature that would solve a lot of these problems if Saka key could allow for custom macros. So I can map (o) to be (ctrl+K). Or I can map any other key to be one of the built-in Firefox shortcuts, for example. |
@alexherbo2 Could you elaborate on how to get a macro working in Firefox? Just like the OP, I would like to focus the address bar using |
Using the native messaging API, we can run native applications on the machine. A native application is nothing more than an external program which listens on Extensions and applications can exchange messages using an API similar to the message passing we used to, except we pass in addition the name of the application when creating the port. We can make any sort of things of a native application, like executing shell commands. Native applications have to be registered on the host machine – in a manifest file – in order to be used. Once the manifest is installed, an extension can exchange messages with the application. The ID of the extension has to be granted in the manifest you installed in order to allow communication. Once that all is set up, our extension can connect to the application by entering it’s name – which is registered in the manifest – and send it’s first message, say press Control-l when the o normal command gets executed. The press command to execute will depend of the OS – and eventually the display server if you’re on Wayland already. |
In all other keyboard-based web-browsing extensions, there's the functionality that, from the current webpage, you can press a key (like o) which let's you enter a new url you wish to go to. Even better is when you can press a key which brings the focus to the address bar, where you can type in a new address or edit the current address.
Could this simple but crucial functionality be added?
The text was updated successfully, but these errors were encountered: