Re: [PATCH] Feature: custom guitool commands can now have custom keyboard shortcuts
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 9, 2019, 20:42 UTC
- Message-ID
- <nycvar.QRO.7.76.6.1910092240190.46@tvgsbejvaqbjf.bet>
- In-Reply-To
- <f751705949a7fd23c77cbbf839c081b95b12394b.camel@gmail.com>
Hi,
On Wed, 9 Oct 2019, Harish Karumuthil wrote:
Show 6 quoted lines
> @Johannes Schindelin: In short, from your previous message I understand point. > > 1. shortcut codes like "<Control-,>" 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