JavaScript - Closing dialogue box with NumPad Enter

Hi there,
I have a JavaScript in Photoshop (CS6) that opens a dialog box with an OK and a Cancel Button.
If I hit return on the keyboard the box closes as if i clicked the OK button, if I hit the NumPad Enter key nothing happens.
Any ideas on how to get the NumPad Enter key to work properly on this?
(not that this is a BIG deal, but I always use the NumPad to close dialog boxes as it is next to my mouse, and I don't wanna switch between the two keys all the time...)
I'm on a Mac btw.
kind regards
derflow

Strange.. I'm on 10.7.4, tested it in CS6 and CS5...
Here's what i got, can you see what it could be?
// ========== FENSTER START=============
function fenster (dpi, dateiendung) {
var headermeldung = docRef.name + ": " + docRef.resolution + "dpi";
var dpiyes = "auf 300dpi umwandeln";
var dpino = docRef.resolution + "dpi belassen";
var dlgy = 10;
var dlgsizex = 370;
var dlgsizey = 90;
if(aufloesung<dpiOk){dlgsizey = dlgsizey + 90;}
if(formatcheck == -1){dlgsizey = dlgsizey + 70;}
var dlg = new Window("dialog",headermeldung,[1,1,370,dlgsizey]);
// dpi Auswahlkästchen
if(aufloesung<dpiOk){
dlg.oben = dlg.add("panel",[10,dlgy,350,dlgy+80],"DPI Umwandeln");
dlg.oben.radio1 = dlg.oben.add("radiobutton",[10,10,400,40], dpiyes);
dlg.oben.radio1.value = true;
dlg.oben.radio2 = dlg.oben.add("radiobutton",[10,40,400,70], dpino);
dlgy = dlgy + 90;
// TIF speichern Auswahlkästchen
if(formatcheck == -1){
dlg.mitte = dlg.add("panel",[10,dlgy,350,dlgy+60],"TIF speichern?");
dlg.mitte.tif = dlg.mitte.add ('checkbox',[10,10,35,35]);
dlg.mitte.tif.value = true;
dlg.mitte.tiftext = dlg.mitte.add ('statictext',[45,10,160,35],"TIF SPEICHERN");
dlg.mitte.tifopenbox = dlg.mitte.add ('checkbox',[170,10,195,35]);
dlg.mitte.tifopenbox.value = true;
dlg.mitte.tifopentext = dlg.mitte.add ('statictext',[205,10,325,35],"vorh. TIF öffnen");
dlgy = dlgy + 70;
dlg.unten = dlg.add("panel",[10,dlgy,350,dlgy+60],"Übernehmen?");
dlg.unten.cancel = dlg.unten.add("button",[10,10,155,40],"Abbrechen", {name:"cancel"});
dlg.unten.ok = dlg.unten.add("button",[170,10,325,40],"OK", {name:"ok"});
//Fenster anzeigen
dlg.center();
ok = dlg.show() == 1;       
if(aufloesung<dpiOk){  //dlg.oben wurde sonst ja nicht definiert
with (dlg.oben){
    if(radio1.value == 1) { reschange = 1; }
    if(radio2.value == 1) { reschange = 0; }
if(formatcheck == -1){  //dlg.mitte wurde sonst ja nicht definiert
with (dlg.mitte){
    if(tif.value == true) { tifsave = 1;}
    if(tif.value == false) { tifsave = 0;}
    if(tifopenbox.value == true) { tifopen = 1;}
    if(tifopenbox.value == false) { tifopen = 0;}
// ========== FENSTER ENDE =============

Similar Messages

  • Bought Premier Elements yesterday. EVERY time I try to open a set of clips with Editor, I am told I have to sign into my Adobe first. I do this and wait for several minutes for the password dialogue box to open, enter my password. then wait and wait until

    Bought Premier Elements 13 yesterday. EVERY time I try to open a set of clips with Editor, I am told I have to sign into my Adobe first. I do this and wait for several minutes for the password dialogue box to open, enter my password. then wait and wait until my pw is recognized. Accept agreement. Agreement screen disappears and I'm back where I started. Try to open video clips with editor again and get the same demand to log in. Please advise asap. thx

    Oldcameraman
    Please do not duplicate a thread. The threads are answered as soon as possible. We are not Adobe. Just user to user.
    I have answered your most recent of the duplicates
    Premier Elements 13 Organizer Works. Editor doesn't. Log in doesn't work
    It is uncertain just how far we can go to help you since you do not appear to have Premiere Elements any
    longer.Seems you demanded a refund from Adobe Chat, got it, and now are left with a non purchased program which I
    am not sure can be used.
    Duplicates tend to confuse the person asking the question as well as those attempting to reply. As I suggested in the
    above mentioned thread, try to sort out your situation with Adobe via its Adobe Chat.
    ATR

  • After opening my yahoo mail window, I keep getting a very narrow dialogue box with the words "log into Xmarks" I cannot ... and everything is frozen. How can I get rid of this thing, and what is it? I have to hit CNTRL + ALT + ESC to get rid of it.

    After opening my yahoo mail window, I keep getting a very short and narrow dialogue box with the words "log into Xmarks" I cannot ... when it pops up, always upper left of my laptop screen and I try to get into my yahoo mail web page, I get a DING sound and cannot enter it ... everything is frozen. I have to hit CNTRL + ALT + ESC to get rid of it - and then reload my Firefox browser to get back to my yahoo e-mail page ... fortunately for me, Firefox re-stores a previous session ... How can I get rid of this intrusive thing, and what is it? Thanks in advance ... Ted Beaudoin, Welland, ON, Canada

    Remove VideoFileDownload and find a downloader that doesn't contain TextEnhance.

  • Every time I open a pdf file which includes a javascript, a dialogue box pops up. I have a question why 'Do not show this message again' is not working even I checked on the checkbox. It should block the dialogue next time when I open the same pdf file bu

    Every time I open a pdf file which includes a javascript, a dialogue box pops up. I have a question why 'Do not show this message again' is not working even I checked on the checkbox. It should block the dialogue next time when I open the same pdf file but not working. What is the matter and how can I deal with it?

    I am trying it on Adobe Acrobat Reader 9.2.1. Tried to fix Hex code, and also tried 'edit-preference-trust manager'. I focusing on Adobe registries but still couldn't fix the problem.

  • Open Dialogue box  with Webutil

    I need to open Dialogue box with Webutil and choose file and its path aper in text box

    Open the webutil.pll library, then look at the WEBUTIL_FILE package. It contains all you need.

  • Creating a print dialogue box with options

    Hi there,
    I'm struggling with an issue of usability.
    I have a complex form which increases in size when the user enters more text  - many pages where there are info boxes of text that are hidden when printing - this has a knock on effect that page numbers on screen don't match page numbers when printing.
    I got help from Radzmar (thank you!) who gave me the code for a print button that prints a section rather than a page number span; so when the user clicks the button:
    var vObj = xfa.resolveNode("form1.summary"),
      vPageStart = xfa.layout.absPage(vObj),
      vPageEnd = vPageStart + xfa.layout.absPageSpan(vObj) - 1;
    xfa.host.print(1, vPageStart.toString(), vPageEnd.toString(), 0, 0, 0, 0, 0);
    ...the form will print the contents from my section 'form1.summary'
    However, thinking about usability, it would make sense to have a button that opened a dialogue box which gave the user immediate options. At any one time there would be three options:
    1. To print just the page they are looking at
    2. To print the section they are on
    3. To print the entire document
    In plain english the dialogue box should say something like:
    Title: Printing Options
    Message: 'You have several options for printing'
    Button One text: 'Print this page only'
    Button two text: 'Print this section only (name of section goes here, such as 'Core Data', 'Assessment' etc.)
    Button three text: 'Print the entire document'
    Button four: Cancel
    I'm new to scripting and using the script editor doesn't give me enough options to edit a message box so I'm wondering if someone could help please.
    I should also mention that the end product here is a pdf form which needs to work through acrobat reader without necessarily being online.
    Many thanks,
    Sunil

    Firefox 3.0 and earlier versions had a preference '''print.use_native_print_dialog ; true''' which could be toggled to '''''false''''', but with Firefox 3.5 it was removed. When that pref was set to false the "print" command went directly to the printer, without the appearance of the dialog box.
    It is possible to show a "printer-ready" window, because I see them frequently at many websites, so your developer needs to study up on how to display a "printer-ready" page and not trigger the appearance of the "native print dialog" box. Unfortunately, Firefox users no longer have control over the appearance of that dialog from within Firefox.

  • On startup I am getting a dialogue box saying to enter the password for Messages Agent wants to login to "keychain". How can I remove it?

    On start up I am getting this dialogue box.
    What are the steps needed so as to remove it?
    Thanks

    Just enter your keychain password. Should be the same as your admin password.

  • No shutdown dialogue box with power key

    when I press the power key on my MP, I don't get the usual dialogue box about, sleep/cancel/shutdown/restart. Is there a preference I am missing? I unticked the one in energy saver that activates the sleep mode with the power button.

    The power key is devoid of that dialogue; use the mouse and menu an normal, if you want that subtlety.

  • Escape key not closing dialogue boxes (Win7)

    Hi there,
    Illustrator CS4 will not close dialogue boxes for me when I press the escape key - any ideas?
    repro: open the colour picker dialogue box - press escape to close. Works fine in Photoshop.
    cheers!
    felix

    It works fine on the Mac three possibilities
    the preferences are corrupt trash the settings folder
    the keyboard key is stuck but since it works in PS it would be highly unlikely
    it doesn't work on Windows 7
    Two more could be a conflict usually happens with conflicts with Entourage or other Microsoft software needing to updated.
    Finally you are delusional and everything is working fine!
    If you need instructions on resetting or moving the settings folder jacob will be around soon he has a link to a page on his site describing the method.

  • When quitting safari I used to get a dialogue box with checkboxes, useful if I accidentally pressed command q, but now option seems to have disappeared. Any ideas why or how to retrieve it please?

    I used to get a dialogue box when quitting safari, which was useful if accidentally hitting 'command q', but has now disappeared leading to lost work etc.
    Any idea why, or how I can get this useful option back please?

    Now resolved, after chatting to Apple online support, who said they'd not heard of this happening - solved it quickly enough though.
    Anyone interested or suffering similar I was told to remove website data from privacy tab in Safari preferences. And yes, I'd love to know how it worked too.....
    Great thanks to Apple.

  • MS "Color Dialogue Box" popping up instead of "Adobe Color Picker" inside PSE 10.

    For purposes of this question, I'm providing definitions of the terms herein used.
    --Toolbox: The 2 columns of Tools on the left side of the Editor screen.
    --Foreground Color & Background Color: The color filled squares at the bottom of the Toolbox.
    --Color dialogue box: This is the pop-up that is labeled at the top with "Color". It shows 48 different color squares (6 rows by 8 columns); they are labeled "Basic colors:". Right below the "Basic colors:" array is another 16 empty squares (2 rows by 8 columns) to be filled with colors to be defined. There is a "Define Custom Colors>>" button when clicked opens up a color picker with HSB RGB stacked below the color field screen. See this link to the Microsoft "Color Dialogue Box", http://msdn.microsoft.com/en-us/library/windows/desktop/ms646375(v=vs.85).aspx
    --Adobe Color Picker: The interactive dialogue box with the color field screen to the left and the HSB RGB numbers stacked on the right side. See this link
    http://www.google.com/imgres?hl=en&sa=X&tbo=d&biw=1280&bih=574&tbm=isch&tbnid=tebKhtFUqFIH ZM:&imgrefurl=http://www.pxleyes.com/video-tutorial/photoshop-elements/6376/Using-the-Colo r-Picker.html&docid=SXta3Vhu1fWfPM&imgurl=http://www.pxleyes.com/images/tutorials/video/4a ab56a881273.jpg&w=200&h=200&ei=-VfFUIWmBMipqQGO8YAw&zoom=1&iact=hc&vpx=530&vpy=143&dur=595 8&hovh=160&hovw=160&tx=67&ty=87&sig=118317379113194278791&page=1&tbnh=142&tbnw=142&start=0 &ndsp=20&ved=1t:429,r:3,s:0,i:96
    The problem:
    In PSE 10, when using the Eyedropper Tool or clicking on the Foreground Color or the Background Color, the Microsoft Microsoft "Color Dialogue Box" pops up instead of the "Adobe Color Picker" dialogue box. This started about a month ago. I use Windows 7.
    Please help. I want the "Adobe Color Picker" to pop up (like it used to) inside PSE 10. How do I correct this problem?
    Thank you.

    Edit>preferences>general and choose the Adobe Color picker from the menu there:

  • Recordset dialogue box missing

    For some reason I am no longer able to open a recordset
    dialogue box from D8.0.2. Has anyone else run into this problem and
    found a solution?

    Yesterday i just reinstal the dreamweaver and it is solve the problem. But today it is happen again, checkbox "Show the dialogue box with insert object" is pressed but it does not work again. Somebody know how to solve this problem?

  • IPhoto freezes on startup and unable to use dialogue box.

    Hi,
    I just upgraded my Snow Leopard to Mountain Lion.  I also updated my iphoto to the latest version (not sure how to check the current version but its the latest one as per app store today). 
    Now when I load my iphoto I get the spinning icon in the middle as well as the Dialogue box asking me if I want to update the Library, however the options are frozen and nothing happens when I click on the buttons.  I've left this for a few hours with no result.
    I've tried holding down the option button on startup but the dialogue box with the new options are frozen.
    Any ideas?
    Cheers,

    Back up your iPhoto library, Depress the option and command keys, launch iPhoto and rebuild the library
    LN

  • I dont know how to bring up the printer settings dialogue box

    i dont know how to bring up the printer settings dialogue box with my macbook pro in order to adjust the lightness/darkness of my prints. my friend has the same model printer as me and can adjust the lightness of his prints using a pc but the same dialogue box doesnt appear with my mac.the printer is epson office b1100

    You can do this from the print dialog box.  For instance, in Safari (which I guess you're looking at now) drop down the 'File' menu and select 'Print'.  This brings up the print dialog box.  Underneath the basic settings you'll see another menu, it currently says 'Safari', but if you drop that down you get all the options for adjusting colour, paper handling, etc...

  • Hitting print brings up a "save to" box with an xls extension which when clicked says "unknown printer error"

    When I try to print from any website or email I get a dialogue box with an xls extension and I am directed to "save to" it. When I try to do that, I get "unknown printer error" and the Firefox shuts down.

    Your mentioning of A4 is pretty much meaningless when you do not also mention the resolution.
    In any case I suspect that gif is an inappropriate format for what you are trying to achieve.
    Please read these (in particular the section titled "Supply pertinent information for quicker answers"):
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    http://forums.adobe.com/docs/DOC-2325

Maybe you are looking for

  • Web Dynpro to EJB

    Hi all I built a small application in Web dynpro which takes an XDP and XML and renders it with a limited set of Reader Rights which works great.. What I trying to do now is to port the code to an EJB with a Web Services so that this can be accessed

  • Reusable Authentication module with page fragments

    Hi, I have an authentication module(as ADF library) with page fragments in an ADF task flow and trying to reuse in other ADF apps. In the consuming application , i have a login page with the resuable authentication task flow dragged and dropped into

  • HT201210 error 36 and/or 47???

    Not able to restore ipod touch.  On trying to restore it says "The ipod 'ipod' coul dnot be restored.  An unknown error occured (36)" or the same message but with 47 as the error code. Any ideas as to what could be the problem???

  • Need some help with Tab Strip

    Hello Experts, I have a got a scenario where I have 4 option button on the page & Tabstrip having 4 tabs below that. Based on the options he chooses I need to make those tabs visible or invisible. Can any one of you suggest me how can I do it. PS: I

  • FM BAPI_ISUACCOUNT_GETDETAIL

    Dear all, We are using FM BAPI_ISUACCOUNT_GETDETAIL. We need to post a document with a tax line and it is supposed that the FM has to create the line automatically. Does anybody have experience with this BAPI? We can post only documents with-out a ta