Skip to content

Commit cc2e628

Browse files
committed
fix pressing Ctrl-Enter/Cmd-Enter inside a request body textarea did not fire the current request
1 parent 2e5d8d7 commit cc2e628

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

77
## [Unreleased]
88

9+
### Fixed
10+
- Pressing Ctrl-Enter/Cmd-Enter inside a request body textarea did not fire the current request
11+
912
## [1.6.0-beta.4] - 2024-07-16
1013

1114
_Changes since 1.6.0-beta.3_

src/jvmMain/kotlin/com/sunnychung/application/multiplatform/hellohttp/ux/CodeEditorView.kt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,16 @@ fun CodeEditorView(
460460
if (it.type == KeyEventType.KeyDown) {
461461
when (it.key) {
462462
Key.Enter -> {
463-
onPressEnterAddIndent()
464-
true
463+
if (!it.isShiftPressed
464+
&& !it.isAltPressed
465+
&& !it.isCtrlPressed
466+
&& !it.isMetaPressed
467+
) {
468+
onPressEnterAddIndent()
469+
true
470+
} else {
471+
false
472+
}
465473
}
466474

467475
Key.Tab -> {

0 commit comments

Comments
 (0)