From: Johannes Schindelin Date: Wed, 09 Oct 2019 20:42:56 GMT Subject: Re: [PATCH] Feature: custom guitool commands can now have custom keyboard shortcuts Message-ID: In-Reply-To: Hi, On Wed, 9 Oct 2019, Harish Karumuthil wrote: > @Johannes Schindelin: In short, from your previous message I understand point. > > 1. shortcut codes like "" will only in Windows platform. It may not work in Linux / Mac. > 2. We need do translate shortcut codes somehow ( using one-to-one maping ). > > If this is correct, do you have any example on how to do one-to-one maping of a list of string on TCL ? This took much longer to find than I expected, probably my web search fu is deserting me. But I found something: `string map`, see https://tcl.tk/man/tcl8.6/TclCmd/string.htm#M34 for details. Ciao, Johannes