Message Boards Message Boards

Enter acts like Shift+Enter in Mathematica 6 on Windows XP with NumLock on

Posted 11 years ago
I am using Mathematica 6.0.0 for Students on Windows (32-bit).

I was working on a project this evening, when I stopped being able to enter new lines by pressing Enter. Instead, Enter caused my current cell to evaluate. Shift+Enter caused a beep, which was explained by the message "You asked to evaluate the next input cell after the current selection, but there were no more input cells in the notebook."

I tried to close and reopen Mathematica. which caused cells to default to not evaluatable. I then did a clean start of Mathematica by deleting the Base Directory and User Base Directory, but the problems persisted. Furthermore, after the initial problem, the font changed from the usual blocky monospace Mathematica font to a Times New Roman-style variable space font (shown below). Output formatting also got strange (as shown below).

Has anyone seen this before? Any ideas how to fix this?

Thanks!

POSTED BY: Abraham K
6 Replies
If all else fails, take a look at the contents of the following file
ToFileName[{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "Windows"}, "KeyEventTranslations.tr"] // FilePrint
where one could swap the interpretation of "Enter" / "KeypadEnter" vs "Return" (the latter is generated by the main Enter key on most keyboards).
POSTED BY: Ilian Gachevski
Posted 11 years ago
Turns out is was the NumLock(!) being turned on. With NumLock off, Enter creates a new line. Keypad Enter acts like Shift+Enter regardless of whether NumLock is on or off.

 For the record, I am on Windows XP on a Dell Vostro laptop. 

Thanks to everyone for your help!
POSTED BY: Abraham K
I don't know what might be causing this.

You are on Windows (looking at the screen shot)? Is it Windows XP or earlier?

Some keyboards have a regular enter key and a keypad enter key. Which one are you using? (The keypad enter key always acts as shift-enter, I believe).

This shouldn't matter, but I presume your caps lock and num lock are not turned on?

Your keyboard layout is just a regular US keyboard layout or a non-US layout (if so, which)?

No special key mapping or tracking software installed?

Keyboard itself is functioning OK (no strange/random shifted characters due to a malfunctioning shift key)?

I found another user with the same problem here (but no solution): http://forums.wolfram.com/student-support/topics/524139

A
lso, you don't have "sticky keys" turned on by accident?
POSTED BY: Arnoud Buzing
Posted 11 years ago
Thanks for your help.

I uninstalled Mathematica and reinstalled it. The default cell is now evaluatable, and the font has returned to its normal appearance, but Enter still acts as Shift+Enter (while Shift+Enter acts as "evaluate next cell"), and I can't enter new lines in a cell, which is annoying for defining functions and programming in general.

Any ideas?
POSTED BY: Abraham K
It could be that you have lost/deleted your Default.nb stylesheet in your installation, because this defines the behavior
and appearance of all cell styles including Input/Output cells (as well as Title/Section/Text cells).

One thing I would try is to do a fresh installation in a different location (leave your current installation intact) and
try to launch Mathematica from the freshly installed copy.
POSTED BY: Arnoud Buzing
Probably either the Default.nb or Core.nb stylesheet was damaged or deleted.  The earlier problem with Enter
acting like Shift-Enter would have been a symptom of the problem that led to Default.nb or Core.nb  being damaged.

Deleting the Base Directory and User Base Directory was a good idea, but this problem is inside
the Mathematica installation.

Re-installing into a different directory (..\Mathematica\6.0b, for example), or removing the current Mathematica and re-installing,
would be the fast way to correct the problem.  The next time you start Mathematica, hold down the SHIFT key as
Mathematica launches.
POSTED BY: Bruce Miller
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract