Skip to content

Pressing Enter inserts a new line at the wrong position #2583

Description

@lelouch1138-eng

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

After updating Acode, I encountered a bug where pressing Enter does not create a new line at the current cursor position.

Environment

Device Information:
WebView Info:
Package Name: com.google.android.webview
Version: 150.0.7871.181

App Info:
Name: Acode
Package Name: com.foxdebug.acode
Version: 1.12.7
Version Code: 1003

Device Info:
Android Version: 16
Manufacturer: Xiaomi
Model: 2311DRK48G
Platform: Android
Cordova Version: 15.0.0

Screen Info:
Width: 407
Height: 904
Color Depth: 24

Additional Info:
Language: en-US
User Agent: Mozilla/5.0 (Linux; Android 16; 2311DRK48G Build/BP2A.250605.031.A3; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/150.0.7871.181 Mobile Safari/537.36

If applicable, add mockups / screenshots regarding your vision

Screenrecorder-2026-08-03-18-01-04-995.mp4

If applicable, attach your Acode.log file to this issue.

Acode.log

[2026-08-03T08:46:10.924Z] [INFO] Started app and its services...
[2026-08-03T08:46:11.761Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 367, Column: 73817, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:367:73823)
at e (https://localhost/build/main.js:367:73761)
at er.resolve (https://localhost/build/main.js:367:74348)
at eO.applyTransaction (https://localhost/build/main.js:367:95841)
at get state (https://localhost/build/main.js:367:77162)
at rN.update (https://localhost/build/main.js:367:250602)
at rN.dispatchTransactions (https://localhost/build/main.js:367:263772)
at rN.dispatch (https://localhost/build/main.js:367:250277)
at x.configureCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23142)
at x.initializeCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23864)
[2026-08-03T08:46:33.095Z] [ERROR] Unhandled rejection: User cancelled
Stack: Error: User cancelled
at HTMLSpanElement.ep (https://localhost/build/fileBrowser.chunk.js:9:8656)
[2026-08-03T08:54:08.229Z] [ERROR] Unhandled rejection: Path not found
Stack: undefined
[2026-08-03T08:54:08.257Z] [ERROR] Error: Uncaught SyntaxError: Identifier 'plugin' has already been declared, Source: https://localhost/__cdvfile_files-external__/plugins/acode.sdk.plugin/main.js, Line: 1, Column: 1, Stack: SyntaxError: Identifier 'plugin' has already been declared
[2026-08-03T08:54:27.500Z] [ERROR] Error: Uncaught SyntaxError: Identifier 'plugin' has already been declared, Source: https://localhost/__cdvfile_files-external__/plugins/acode.sdk.plugin/main.js, Line: 1, Column: 1, Stack: SyntaxError: Identifier 'plugin' has already been declared
[2026-08-03T09:08:23.582Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2026-08-03T09:08:23.583Z] [ERROR] Unhandled rejection: undefined
Stack: undefined
[2026-08-03T09:09:42.613Z] [INFO] Started app and its services...
[2026-08-03T09:09:44.674Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 367, Column: 73817, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:367:73823)
at e (https://localhost/build/main.js:367:73761)
at er.resolve (https://localhost/build/main.js:367:74348)
at eO.applyTransaction (https://localhost/build/main.js:367:95841)
at get state (https://localhost/build/main.js:367:77162)
at rN.update (https://localhost/build/main.js:367:250602)
at rN.dispatchTransactions (https://localhost/build/main.js:367:263772)
at rN.dispatch (https://localhost/build/main.js:367:250277)
at x.configureCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23142)
at x.initializeCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23864)
[2026-08-03T09:10:24.605Z] [ERROR] Unhandled rejection: Failed to fetch
Stack: TypeError: Failed to fetch
at window.fetch (https://localhost/build/main.js:249:5047)
at t.enable.l.default.window.fetch (https://localhost/__cdvfile_files-external__/plugins/acode.sdk.plugin/src/eruda.min.js:8:213666)
at loadPreview (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:208:3)
at buildPanel (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:402:3)
at togglePanel (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:413:38)
at HTMLDocument. (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:454:41)
[2026-08-03T09:14:00.958Z] [ERROR] Unhandled rejection: Failed to fetch
Stack: TypeError: Failed to fetch
at window.fetch (https://localhost/build/main.js:249:5047)
at t.enable.l.default.window.fetch (https://localhost/__cdvfile_files-external__/plugins/acode.sdk.plugin/src/eruda.min.js:8:213666)
at loadPreview (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:208:3)
at buildPanel (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:402:3)
at togglePanel (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:413:38)
at HTMLDocument. (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:454:41)
[2026-08-03T09:14:02.677Z] [ERROR] Unhandled rejection: Failed to fetch
Stack: TypeError: Failed to fetch
at window.fetch (https://localhost/build/main.js:249:5047)
at t.enable.l.default.window.fetch (https://localhost/__cdvfile_files-external__/plugins/acode.sdk.plugin/src/eruda.min.js:8:213666)
at loadPreview (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:208:3)
at document.getElementById.onclick (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:170:69)
[2026-08-03T09:14:03.557Z] [ERROR] Unhandled rejection: Failed to fetch
Stack: TypeError: Failed to fetch
at window.fetch (https://localhost/build/main.js:249:5047)
at t.enable.l.default.window.fetch (https://localhost/__cdvfile_files-external__/plugins/acode.sdk.plugin/src/eruda.min.js:8:213666)
at loadPreview (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:208:3)
at document.getElementById.onclick (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:170:69)
[2026-08-03T09:14:03.913Z] [ERROR] Unhandled rejection: Failed to fetch
Stack: TypeError: Failed to fetch
at window.fetch (https://localhost/build/main.js:249:5047)
at t.enable.l.default.window.fetch (https://localhost/__cdvfile_files-external__/plugins/acode.sdk.plugin/src/eruda.min.js:8:213666)
at loadPreview (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:208:3)
at document.getElementById.onclick (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:170:69)
[2026-08-03T09:14:04.238Z] [ERROR] Unhandled rejection: Failed to fetch
Stack: TypeError: Failed to fetch
at window.fetch (https://localhost/build/main.js:249:5047)
at t.enable.l.default.window.fetch (https://localhost/__cdvfile_files-external__/plugins/acode.sdk.plugin/src/eruda.min.js:8:213666)
at loadPreview (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:208:3)
at document.getElementById.onclick (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:170:69)
[2026-08-03T09:14:04.495Z] [ERROR] Unhandled rejection: Failed to fetch
Stack: TypeError: Failed to fetch
at window.fetch (https://localhost/build/main.js:249:5047)
at t.enable.l.default.window.fetch (https://localhost/__cdvfile_files-external__/plugins/acode.sdk.plugin/src/eruda.min.js:8:213666)
at loadPreview (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:208:3)
at document.getElementById.onclick (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:170:69)
[2026-08-03T09:14:08.025Z] [ERROR] Unhandled rejection: Failed to fetch
Stack: TypeError: Failed to fetch
at window.fetch (https://localhost/build/main.js:249:5047)
at t.enable.l.default.window.fetch (https://localhost/__cdvfile_files-external__/plugins/acode.sdk.plugin/src/eruda.min.js:8:213666)
at loadPreview (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:208:3)
at buildPanel (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:402:3)
at https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:474:62
[2026-08-03T09:14:08.901Z] [ERROR] Unhandled rejection: Failed to fetch
Stack: TypeError: Failed to fetch
at window.fetch (https://localhost/build/main.js:249:5047)
at t.enable.l.default.window.fetch (https://localhost/__cdvfile_files-external__/plugins/acode.sdk.plugin/src/eruda.min.js:8:213666)
at loadPreview (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:208:3)
at buildPanel (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:402:3)
at https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:474:62
[2026-08-03T09:14:31.213Z] [ERROR] Unhandled rejection: Failed to fetch
Stack: TypeError: Failed to fetch
at window.fetch (https://localhost/build/main.js:249:5047)
at t.enable.l.default.window.fetch (https://localhost/__cdvfile_files-external__/plugins/acode.sdk.plugin/src/eruda.min.js:8:213666)
at loadPreview (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:208:3)
at buildPanel (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:402:3)
at togglePanel (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:413:38)
at HTMLDocument. (https://localhost/__cdvfile_files-external__/plugins/com.techsetuapps.instantweb.livepreviewer/main.js:454:41)
[2026-08-03T09:19:29.790Z] [ERROR] Unhandled rejection: WebSocket transport is not open
Stack: Error: WebSocket transport is not open
at Object.send (https://localhost/build/main.js:11:21428)
at https://localhost/build/main.js:367:19129
[2026-08-03T09:57:53.721Z] [INFO] Started app and its services...
[2026-08-03T09:57:55.077Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 367, Column: 73817, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:367:73823)
at e (https://localhost/build/main.js:367:73761)
at er.resolve (https://localhost/build/main.js:367:74348)
at eO.applyTransaction (https://localhost/build/main.js:367:95841)
at get state (https://localhost/build/main.js:367:77162)
at rN.update (https://localhost/build/main.js:367:250602)
at rN.dispatchTransactions (https://localhost/build/main.js:367:263772)
at rN.dispatch (https://localhost/build/main.js:367:250277)
at x.configureCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23142)
at x.initializeCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23864)
[2026-08-03T09:57:55.389Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 367, Column: 73817, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:367:73823)
at e (https://localhost/build/main.js:367:73761)
at er.resolve (https://localhost/build/main.js:367:74348)
at eO.applyTransaction (https://localhost/build/main.js:367:95841)
at get state (https://localhost/build/main.js:367:77162)
at rN.update (https://localhost/build/main.js:367:250602)
at rN.dispatchTransactions (https://localhost/build/main.js:367:263772)
at rN.dispatch (https://localhost/build/main.js:367:250277)
at x.configureCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23142)
at x.initializeCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23864)
[2026-08-03T09:57:55.835Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 367, Column: 73817, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:367:73823)
at e (https://localhost/build/main.js:367:73761)
at er.resolve (https://localhost/build/main.js:367:74348)
at eO.applyTransaction (https://localhost/build/main.js:367:95841)
at get state (https://localhost/build/main.js:367:77162)
at rN.update (https://localhost/build/main.js:367:250602)
at rN.dispatchTransactions (https://localhost/build/main.js:367:263772)
at rN.dispatch (https://localhost/build/main.js:367:250277)
at x.configureCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23142)
at x.initializeCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23864)
[2026-08-03T09:57:56.743Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 367, Column: 73817, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:367:73823)
at e (https://localhost/build/main.js:367:73761)
at er.resolve (https://localhost/build/main.js:367:74348)
at eO.applyTransaction (https://localhost/build/main.js:367:95841)
at get state (https://localhost/build/main.js:367:77162)
at rN.update (https://localhost/build/main.js:367:250602)
at rN.dispatchTransactions (https://localhost/build/main.js:367:263772)
at rN.dispatch (https://localhost/build/main.js:367:250277)
at x.configureCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23142)
at x.initializeCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23864)
[2026-08-03T09:57:58.434Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 367, Column: 73817, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:367:73823)
at e (https://localhost/build/main.js:367:73761)
at er.resolve (https://localhost/build/main.js:367:74348)
at eO.applyTransaction (https://localhost/build/main.js:367:95841)
at get state (https://localhost/build/main.js:367:77162)
at rN.update (https://localhost/build/main.js:367:250602)
at rN.dispatchTransactions (https://localhost/build/main.js:367:263772)
at rN.dispatch (https://localhost/build/main.js:367:250277)
at x.configureCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23142)
at x.initializeCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23864)
[2026-08-03T09:58:01.939Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 367, Column: 73817, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:367:73823)
at e (https://localhost/build/main.js:367:73761)
at er.resolve (https://localhost/build/main.js:367:74348)
at eO.applyTransaction (https://localhost/build/main.js:367:95841)
at get state (https://localhost/build/main.js:367:77162)
at rN.update (https://localhost/build/main.js:367:250602)
at rN.dispatchTransactions (https://localhost/build/main.js:367:263772)
at rN.dispatch (https://localhost/build/main.js:367:250277)
at x.configureCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23142)
at x.initializeCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23864)
[2026-08-03T10:03:26.168Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 367, Column: 73817, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:367:73823)
at e (https://localhost/build/main.js:367:73761)
at er.resolve (https://localhost/build/main.js:367:74348)
at eO.applyTransaction (https://localhost/build/main.js:367:95841)
at get state (https://localhost/build/main.js:367:77162)
at rN.update (https://localhost/build/main.js:367:250602)
at rN.dispatchTransactions (https://localhost/build/main.js:367:263772)
at rN.dispatch (https://localhost/build/main.js:367:250277)
at x.configureCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23142)
at x.initializeCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23864)
[2026-08-03T10:03:27.799Z] [ERROR] Error: Uncaught RangeError: Duplicate use of compartment in extensions, Source: https://localhost/build/main.js, Line: 367, Column: 73817, Stack: RangeError: Duplicate use of compartment in extensions
at e (https://localhost/build/main.js:367:73823)
at e (https://localhost/build/main.js:367:73761)
at er.resolve (https://localhost/build/main.js:367:74348)
at eO.applyTransaction (https://localhost/build/main.js:367:95841)
at get state (https://localhost/build/main.js:367:77162)
at rN.update (https://localhost/build/main.js:367:250602)
at rN.dispatchTransactions (https://localhost/build/main.js:367:263772)
at rN.dispatch (https://localhost/build/main.js:367:250277)
at x.configureCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23142)
at x.initializeCodeMirrorAutocompletion (https://localhost/__cdvfile_files-external__/plugins/bajrangcoder.react.snippets/main.js:2093:23864)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs info / awaiting responseThe issue needs more information from the user before proceeding.

    Type

    No type

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions