Shortcut for typing special character

Hello fellow Haikuians :smile:
And thanks for a totally awsome forum.

Question: is there a way to make a shortcut (in Preferences/Shortcuts) for typing text, or a special character?

Why? you may ask…
I use Claws-mail, and for the most part I think it’s a good application for mail. Looking forward to trying Beam when and if that is up and running again.
The biggest drawback in Claws is that the “@” does not work on my international keyboard. The workaround atm is to have one ready to go on the clipboard, but it quickly becomes a hassle as I often need to copy/paste other stuff.

Thanks in advance for your help.

Welcome @bighill. In Preferences->Shortcuts, I have mapped the ALT-OPTION-ò combination to the following command:
/bin/clipboard —copy=@
This will load the “@“ character into the clipboard. After that you could paste it into the text box of whatever program you need with Alt-V (e.g. Claws Mail and Web - aka Epiphany).
Assuming you have set the Haiku mode in Preferences->Keymap.
Unfortunately, I don’t recall any practical way to programmatically send a keystroke other than creating a dedicated input filter so I think this is as far we can get.

2 Likes

Thanks for a great tip :blush:

Perhaps another option could be to use Clipdinger and add it to favourites.

1 Like

Yes but with dedicated shortcuts for each favourite, if possible.
Even better, if there’s a practical way to identify the text box that has focus, a small floating window may appear with the list of favourites. Very much like an auto completion box, if you know what I mean.

I used something like that a lot on MacOS, an always available character display with whatever random character I might need for someone’s Hungarian name or whatever.

But … “@”? ASCII 64? This kind of thing is why I went to a lot of trouble to find another US-International keyboard when my old computer was getting too rough, but the Portuguese keyboard that prevails here at least has “@”. You just have to use a modifier key, like <Alt Gr>2. If you have a national keyboard layout that really doesn’t automatically have @ in Haiku, I wonder if it might be worthwhile to add it in the keymap, given that it’s so commonly used.

I just assigned “@” directly to CTRL-3 in Shortcuts, without going through the clipboard. It works fine.

Or am I not understanding the problem?

2 Likes

It is in the keymap already. The problem here is that claws mail uses a wayland translation layer instead of a native port of gtk, and that doesn’t use haiku keymaps but some random other one and can’t properly retrieve the characters as a result.

1 Like

Ew, that’s not good. I hope not many people are falling into this hole for lack of a usable native email client.

It is what it is, I don’t expect much more from a GTK app. But Beam desperately needs some attention, maybe one day it will get on par with Claws.

1 Like

8 posts were split to a new topic: Beam, Mail… email clients on Haiku

Thanks, this worked! : :grinning:

However the double double dash in the command did not show correctly when just copy/pasted into Shortcuts.

/bin/clipboard --copy=@