Skip to content

[Bug] ChatGPT Input: Enter Key Only Creates New Line Instead of Sending Message #142

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

Open
eugene3407 opened this issue Mar 6, 2025 · 1 comment

Comments

@eugene3407
Copy link

Problem
When using the CustomFlames plugin in Obsidian, pressing the Enter key inside the ChatGPT input field only creates a new line instead of submitting the message. This issue does not occur with other embedded sites or applications, only with ChatGPT.

Steps to Reproduce
Open Obsidian and launch CustomFlames.
Load ChatGPT inside an embedded frame.
Type a message in the ChatGPT input field.
Press Enter.
Instead of sending the message, the cursor moves to a new line.
Expected Behavior
Pressing Enter should submit the message to ChatGPT, just like in a normal web browser.

Workarounds Tried (All Failed)
Shift + Enter, Ctrl + Enter, and Cmd + Enter
Checking for possible keybinding conflicts in Obsidian
Reinstalling CustomFlames plugin
Updating Obsidian and CustomFlames to the latest versions
System Information
Obsidian Version: [Your Version]
CustomFlames Plugin Version: [Your Version]
Operating System: [Windows/Mac/Linux]
Additional Notes
This issue seems specific to ChatGPT since other embedded websites inside CustomFlames work fine with Enter.

Would appreciate any insights or possible fixes! 🚀

@eugene3407
Copy link
Author

eugene3407 commented Mar 11, 2025

Description:
I noticed a bug related to the ChatGPT sidebar. When the sidebar is at its default size, pressing the Enter key works as expected to trigger a search. However, when I resize the window and the sidebar becomes smaller, the Enter key no longer triggers a search.

This issue seems to be related to how the sidebar's toggle behavior changes when the page is resized. When the sidebar is in a more compact state, the search function does not respond to the Enter key.

Steps to reproduce:

Open ChatGPT with the sidebar at its normal width.
Try using the Enter key for searching—it works.
Reduce the page width so that the sidebar becomes more compact.
Try pressing Enter again—it no longer triggers a search.
Expected behavior:
The Enter key should work for searching regardless of the sidebar’s size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant