Skip to content

[sticky-notes][BUG] Sticky Notes editor saves on Enter instead of inserting a newline #930

Description

@tachycodia

Submission checklist

  • I have searched existing issues and confirmed this is not a duplicate.
  • I am using the latest available version of Noctalia and of the plugin.
  • This is a bug in a community plugin, not in Noctalia itself (those belong in the noctalia repo).

Plugin

sticky-notes

Plugin version

1.3.0

Bug description

The Sticky Notes editor incorrectly submits/saves the note when the Enter key is pressed.

The editor is a multiline text input, and the plugin's "save_shortcut" setting/documentation states that Ctrl+Enter should save and close the editor. Therefore, normal Enter should insert a newline.

In Sticky Notes v1.3.0, pressing Enter immediately saves/closes the note instead of inserting a new line. This makes it impossible to create multi-line notes using the normal Enter key.

Steps to reproduce

  1. Enable the "ahmedhossamdev/sticky-notes" community plugin.
  2. Open the Sticky Notes panel.
  3. Create a new note using the "+" button or the "new-note" quick-capture command.
  4. Click/focus the note editor.
  5. Type some text.
  6. Press the normal Enter key.
  7. Observe that the note is saved/closed instead of inserting a newline.

Expected behavior

Pressing Enter in the multiline Sticky Notes editor should insert a newline and keep the editor open.

Ctrl+Enter should save and close the note.

The expected behavior is:

  • Enter → insert newline
  • Ctrl+Enter → save and close
  • Done → save and close
  • Back → save and return to the note list

Actual behavior

Pressing the normal Enter key immediately submits the multiline editor and saves/closes the note.
As a result, multi-line notes cannot be created using the normal Enter key.

Logs / error output


Noctalia version

v5.2.0

Compositor

Niri

Environment information


Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions