abcTajpu v2.6
The extension "abcTajpu" (a b c type-oo) offers a number of ways to enter the non-ASCII letters from various European (and some other) languages. The simplest way to type an accented letter, when you're in a text field of a web page, is to press green the abcTajpu icon. It's also possible to right click a text field of a web page and follow the abcTajpu menu. To configure "abcTajpu" and create your own macros, keyboard layout, or content menu, go to the options tab under about:addons.
So, by pressing alt-k the Abctajpu popup will appear, and if the ⚡ checkbox is ticked then you go straight to the first text entry box (for macros) and there you can enter a valid macro so the popup automatically closes and the macro expansion is inserted into the page. For example if the Abctajpu options define macro c=ĉ and the popup's ⚡ is ticked, then typing alt-k c in a web page will insert a ĉ. If the option 📋 is ticked then rather than being copied into the page, the letter is copied to the clipboard.
The key alt-X provides a reduced set of alt-k functions, but without the need for the popup dialogue or the right-click menu. So on a text input field in a webpage it is possible to type for example c alt-x so that ĉ is entered.