Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swap Shift/Ctrl Enter to match VS Code? #363

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/components/CellInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export const CellInput = ({

const keys = {}

keys["Shift-Enter"] = () => on_submit(cm.getValue())
keys["Ctrl-Enter"] = () => {
keys["Ctrl-Enter"] = () => on_submit(cm.getValue())
keys["Shift-Enter"] = () => {
on_add_after()

const new_value = cm.getValue()
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,8 @@ export class Editor extends Component {
alert(
`Shortcuts 🎹

Shift+Enter: run cell
Ctrl+Enter: run cell and add cell below
Ctrl+Enter: run cell
Shift+Enter: run cell and add cell below
Delete or Backspace: delete empty cell

PageUp or fn+Up: select cell above
Expand Down