Only wrap URLBar on focus and hotkey to open recent requests

This commit is contained in:
Gregory Schier
2023-10-27 12:40:43 -07:00
parent ede0f1890f
commit 9f2577db66
7 changed files with 42 additions and 22 deletions

View File

@@ -259,10 +259,6 @@ function getExtensions({
...(singleLine
? [
EditorView.domEventHandlers({
focus: (_, view) => {
// select all text on focus, like a regular input does
view.dispatch({ selection: { anchor: 0, head: view.state.doc.length } });
},
keydown: (e) => {
// Submit nearest form on enter if there is one
if (onEnter != null && e.key === 'Enter') {