Sg2.9
Keys?
Recent RSS
Keys?
Date:  23. November 2010, 19:29

Thinking about making a type tool.

Is there a way to disable the keyboard shortcuts during running a script? I want to be able to get full use of the keys, or at least A-Z (both lower and upper cases) without "tripping" the shortcuts of Illustrator.

I'd rather be avoiding the TextItem.
Possible?

Re: Keys?
From:  Jürg Lehni
Date:  24. November 2010, 16:54

Hi Håkan,

In fact, there is a way to do this. Simply return true from the onKeyDown handler, and the event will not be passed further to the system:

function onKeyDown(event) {
	return true;
}

In order to remove the handler again, you have to currently hit the stop button in the Scriptographer palette.

Does this help?

Re: Keys?
Date:  25. November 2010, 06:51

Yes, that seems to do the trick.

Thank you very much!

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Stroke Translation 10.03.09