question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change the Enter key to Return key on MacOS

See original GitHub issue

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

I would like to change the Enter key to Return key on MacOS. One less key to press. If it fits with the UX and is relatively straightforward, I would gladly make a PR.

Version

Spyder 3.2.8 Python 3.6.3 64bits, Qt 5.9.4, PyQt5 5.9.2 on Darwin

Dependencies

IPython >=4.0    :  6.3.1 (OK)
cython >=0.21    :  None (NOK)
jedi >=0.9.0     :  0.12.0 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
numpy >=1.7      :  1.14.2 (OK)
pandas >=0.13.1  :  None (OK)
psutil >=0.3     :  5.4.5 (OK)
pycodestyle >=2.3:  2.4.0 (OK)
pyflakes >=0.6.0 :  1.6.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
pylint >=0.25    :  1.8.4 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
rope >=0.9.4     :  0.9.4-1 (OK)
sphinx >=0.6.6   :  1.7.4 (OK)
sympy >=0.7.3    :  None (NOK)```

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
minhtrietcommented, Jun 5, 2018

Thank you @CAM-Gerlach for the answer. Preferences > Keyboard shortcuts shows that run current cell is ^⏎. I agree with you that this is really a part of #7146 and will close the issue.

0reactions
CAM-Gerlachcommented, Jun 5, 2018

Yes, Shift Return somehow works, but also advances to the next cell.

If you look in our keyboard shortcuts editor (Preferences > Keyboard shortcuts), or the shortcuts summary (Help > Shortcuts Summary), you’ll see that’s the designated shortcut for run cell and advance, i.e. run the current cell and then go to the next one, which is exactly what you are describing, so it is behaving exactly as expected.

I would like to evaluate a cell by pressing Control-Return rather than Control-Shift-Return.

I believe the former (i.e. Cmd-Return on a Mac) should be the default shortcut, but did you check it in the keyboard shortcuts editor in the preferences? Enter on a PC should be equivalent to Return on a Mac, though the naming might not be properly responsive which is really a part of #7146 which should be in the process of being addressed for 3.3.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change function of enter key - Apple Community
The enter key on the iMac Pro seems to have the sole function of selecting the Apple icon in the top menu bar....
Read more >
My ENTER key broke on my Mac. Is it possible to make the ...
You can either go to the Apple Menu > Force Quit or hit the keys Command-Option-Esc, which will bring up the same window....
Read more >
Return and Enter Are Two Different Keys - Daring Fireball
If your keyboard doesn't have a dedicated Enter key, you can type the Enter key by pressing Fn-Return. That's why some Return keys...
Read more >
How To: Replace the ENTER Key on Apple Magic Keyboard 2 ...
To support my work, please hit the Subscribe Button.The Video is in reverse order, so first it shows you how to reattach the...
Read more >
How to replace the enter key on a MacBook Pro A2141 ...
A video guide on replacing the enter keycap on the latest MacBook Pros & Airs with the scissor mechanisms.To see how to remove...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found