Address bar with commannds modify

Hi,

I do not find in the documents any help for my problem.

I want with Shortcuts manipulatet the Address bar content. For example a Seachstring in Addressbar must modify with alt+g.

The Commands must only run, wenn the focus is in addressbar.

Thanks for help

jens

Are you asking how to do that when coding an extension or looking for an extension that does that?

Yes I am asking how to do that when coding an extension

You can not do anything with key events in the awesomebar. The only APIs for that area are https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/omnibox

You may want to consider different tools that allow you to modify input behaviors like AHK (Auto hotkeys or something) on Windows.

Hi,thank you, but i need other function. for exampel:

In addressbar is a url with long path. With alt + x the path make shorter and load the resource.

Those function I need on principle.

Principle won’t help you much here. The APIs in Firefox simply don’t offer this flexibility. As mentioned before, you can likely use keyboard macro software to achieve the desired effects.

Thannk you for help