4 Replies Latest reply on Dec 11, 2011 2:40 PM by thosliot

    Return = carriage return, or submit calc?

    kcunning

      This behavior isn't exactly new, but I finally decided to ask about it: when I'm in the calc editor (e.g., defining a calc field, or setting a variable, etc.) and I use the "return" key, it used to ALWAYS enter a carriage return into the text, notwithstanding that the "OK" button was always lit up.

       

      More recently, it SOMETIMES inserts a carriage return, and OTHER TIMES it causes the "OK" button to trigger, submitting the calc and closing the calc definition box. I am starting to get into the habit of using Shift-Return to insert carriage returns inthe calc box (since I can't rely on the old behavior), but I'd prefer not to have to Shift, and it would be nice to understand the behavior so I can work with it instead of being surprised by it.

       

      Can anyone describe the algorithm this is being followed by FileMaker here?

       

      (FWIW, I'm on Mac OS 10.6.8, FMPA 11.0v4 -- but I've been seeing this mixed behavior for a while.)

       

      Thanks, --Kevin

        • 1. Re: Return = carriage return, or submit calc?
          psijmons

          Always use the fn key together with Return to close the calc window (this is on a laptop w/o an Enter key)

          • 2. Re: Return = carriage return, or submit calc?
            MicheleOlson

            Hi Kevin,

             

            I believe the difference is caused by what area is active within the calculation window.

             

            I attached 2 example files. In the first, the calculation box is active. Notice the blue border around the box.

             

            If you press Return now, you are entered a Return character into the box.

             

            In example 2, the Calculation Result is Number is selected or active.

             

            If you press Return now, it is the same as clicking on the OK button.

             

            I moved from one active area to the next using the Tab key on the keyboard.

             

            I don't remember exactly when this behavior came about, but I think it has to do with the OS as well as FM capabilities.

             

            It gives us the ability to move within a window, selecting different options and have them be active when we need them, using the Keyboard and not the Mouse.  Nice feature, but it may take a bit of getting used to.

             

            The default when you open the calculation Window is the calculation box.

             

            HTH,

             

            Michele

            • 3. Re: Return = carriage return, or submit calc?

              Hi Kevin et al,

               

              I recommend that you download and install KeyRemap4MacBook as a Preference pane. With it you can convert the RH Option Key to the Enter Key sparing any need to always remember fn-Return when you genuinely need to use Enter.

               

              I've certainly not seen it cause any unintended side effects with OS X 10.6.8 on my latest MacBook Pro.

               

              HTH,

               

              John

              • 4. Re: Return = carriage return, or submit calc?
                thosliot

                In addition to Michele's comments …

                 

                I don't know if this is relevant or not, but there is a difference in behaviour between the full calculation engine window and the simpler one you get initially when you specify, for example, a Set Variable Step:

                 

                SetVariableWindow.png

                 

                Hitting Return or Enter in this a window always activates the OK button

                 

                cheers

                 

                Tom