mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
In a Py-Repl, Shift Enter Shouldn't Insert Newline (#1094)
* Prevent shift-enter adding newlines in Py-Repl * Add test
This commit is contained in:
@@ -68,8 +68,8 @@ export function make_PyRepl(runtime: Runtime) {
|
||||
languageConf.of(python()),
|
||||
keymap.of([
|
||||
...defaultKeymap,
|
||||
{ key: 'Ctrl-Enter', run: this.execute.bind(this) },
|
||||
{ key: 'Shift-Enter', run: this.execute.bind(this) },
|
||||
{ key: 'Ctrl-Enter', run: this.execute.bind(this), preventDefault: true },
|
||||
{ key: 'Shift-Enter', run: this.execute.bind(this), preventDefault: true },
|
||||
]),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user