dgross@rchland.vnet.ibm.com (Dave Gross) (05/01/91)
I would like to set up a Quit key mapped to F10 (\e<) that works in allapplications. In .atkinit, addkey frame-exit \e< view all works for ez, but not for other things, like typescript (bad command). addkey exit \e< view all works for all applications, but no checking is done for changed buffers, etc. Any ideas? Thanks, -- Dave
ghoti+@ANDREW.CMU.EDU (Adam Stoller) (05/01/91)
Excerpts from internet.info-andrew: 1-May-91 addkey question Dave Gross@rchland.vnet. (338+0) > I would like to set up a Quit key mapped to F10 (\e<) that works in all > applications. > In .atkinit, > addkey frame-exit \e< view all > works for ez, but not for other things, like typescript (bad command). > addkey exit \e< view all > works for all applications, but no checking is done for changed buffers, etc. > Any ideas? > Thanks, > -- Dave The problem is that many of the applications - override the default Quit function - so you need to make different bindings for the different applications (I assume you already know about ^X^C - which is bound to the correct Quit function by default ?) As an example - messages (folders,captions,body): ^X^C -> messages-quit sendmessage (messages/composition): ^X^C -> sendmessage-quit typescript: ^X^C -> im-exit-program etc., etc., etc. The deskey-describe-key binding is very usful for this sort of thing since, once bound, you can use it to identify the other bindings. The other deskey-* functions are also helpful. --fish