What Don just described is rightful expectation mindset of
a user from experience with how programs work in modern-day GUI.
Although the GUI of present word processors, email clients, etc.
is considered *modeless* as opposed to earlier programs like vi,
there are tiny almost unnoticible "modes" such as selection,
(to cut and paste), dialog boxes, dragging, modal tool buttons,
which all have in common that they deviate from a normal
state of the application. To return to the initial state, the user
needs to "escape" it, hence the Esc key is used for that purpose.
Escaping a mode to return to main view is distinctly different
from *exiting* the application. With saturation of document-based
interfaces (text documents, Web pages, etc) the same true for
a document: escaping a mode is different from *closing* the
document window.
I have the same mismatch experience when using the Find dialog
and pressing Esc to try to dismiss it instead closes the script
window, which is a document window for J.
(in script) Ctrl+F, type, Enter, Esc -- closes script
--- Don Guinn <[EMAIL PROTECTED]> wrote:
> Yes, I see that the script is saved. IGlad to know that. But when I first
> ran into the problem I had accidentally pressed ESC on the IJX window and my
> session terminated. OK, I guess my scripts were saved which I didn't
> realize, but I didn't intend for my J session to terminate. I tried opening
> an existing script, modified it, then pressed ESC in the IJX window and
> it asked me if I wanted to save the IJS window, which is good. So, I guess
> that it is working as you intended, and looks good; however, ESC in the IJX
> window closing J still seems a little drastic.
>
> On Mon, Apr 14, 2008 at 4:12 PM, Chris Burke <[EMAIL PROTECTED]> wrote:
>
> > I am not sure what problem is referred to here. Is it a beta issue that
> > is now fixed?
> >
> > Closing a J session should save any open scripts or prompt to save the
> > scripts. If this does not happen, please give me steps to reproduce the
> > error.
> >
> > Don Guinn wrote:
> > > I ran into this problem and reported it a while back in the programming
> > > forum (I think). It is caused by choosing no confirmation for session
> > > close in the session configuration. I added the following to change
> > pressing
> > > the ESC to request close confirmation until JSoftware comes up with how
> > this
> > > shuld be handled. Stick this in your configuration script to override
> > the
> > > action of ESC.
> > >
> > > NB.*jijs_cancel_jijs_ v Changed to prevent esc from terminating J.
> > > jijs_cancel_jijs_=: 3 : 0
> > > if. -.CONFIRMCLOSE do.
> > > if. IFIJX
> > > do. q=.'Do you want to exit J?'
> > > else. q=.'Do you want to close this window?'
> > > end.
> > > if. wdquery 'Jsoftware';q do. return. end.
> > > close''
> > > end.
> > > ''
> > > )
> > >
> > > On Mon, Apr 14, 2008 at 6:48 AM, Matthew Brand <
> > [EMAIL PROTECTED]>
> > > wrote:
> > >
> > >> Hi,
> > >>
> > >> I was editing a program using the built in editor and accidently
> > pressed
> > >> the escape key. The window was closed and the changes I had made appear
> > to
> > >> have been lost. Luckily I have developed a habit of ctrl-s about once a
> > >> minute (thanks to years of battling against excel ) so I did not lose
> > much,
> > >> but is this a bug? It might be more appropriate to ask if you want to
> > save
> > >> the changes before closing.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm