Key combinations not recognized

Hi, I tried FT and like it. But there is a bug that does not occur in TaskPaper 2 but in the new beta version as well as in Folding Text:

I have these characters mapped to a certain key combination:

āīūēōŏŭ
ĀĪŪĒŌŎŬ

The combination is ctrl-a … ctrl-ö, ctrl-ü; and for capitals respective.

But some combinations are not recognized:

īūŏŭ
ĪŪŌŎŬ

I thought that there are shortcuts in the menus, but they are not. How can I get these keys back working?

Best,
Maria

FoldingText implements its own internal keybinding system that overrides the system menus when there is a conflict. For example Ctrl-A is mapped to ‘moveToBeginningOfParagraph’ inside FoldingText and that will take precedent over anything put into the OS X menu system. To override an internally defined keybinding you’ll need to use a plugin.

I’ve just create an example plugin that you can start with.

Great, thanks a lot, this helps.

But – I do not know JavaScript, just changed from ā to ō, but cannot add other keybindings.

Where do I have to add the other patterns, and which brackets do I have to use?

Sorry, if you add one more example, I know how to go on.

Best,
Maria

Sure… repeat the pattern and separate each one with a comma.

Like this:

editor.addKeyMap({
	'Ctrl-A' : function (editor) {
		editor.replaceSelection('â');
	},
	'Ctrl-U' : function (editor) {
		editor.replaceSelection('û');
	}
});

The modifier options are:

Shift-, Cmd-, Ctrl-, and Alt- (in that order)

Works great! Thanks for your help,
M