[Interest] [osx] cmd-period mapping

Tim Blechmann tim at klingt.org
Thu Sep 4 08:21:01 CEST 2014


hi john,

> On Macintosh, cmd-. is the cancel signal, like ctrl-break in Windows,
> or Ctrl-C for Linux. In fact, when building with Qt and Cocoa, you
> don't get it at all because Cocoa eats it up. We went to somewhat
> extreme lengths to intercept cmd-. so that we can use it to cancel
> user programs (our application includes a user programming
> language).
> 
> You really should NOT use cmd-. as anything other than a cancel
> signal.

thanks a lot for the explanation. however there is one thing, that i
don't quite understand: cmd-. on a QPlainTextEdit adds a . to the
document ... so it is not completely swallowed by cocoa ... also i
wonder, why the hell qt doesn't post a run-time warning when setting
cmd-. a shortcut, especially as qt4 did handle the case ...

iac, i think i can hack my way around it, now ...

tim




More information about the Interest mailing list