Skip to content

Keyboard shortcut for comment toggle not working in environment variable editors #4402

@amit-y11

Description

@amit-y11

To Reproduce

  1. Navigate to Project -> Select a Project -> Select any service -> Environment
  2. Enter some environment variables in the editor (e.g., MY_VAR=value)
  3. Place cursor on any line and press:
    • Cmd+/ on macOS
    • Ctrl+/ on Windows/Linux
  4. Expected: Comment syntax (#) is added to the line
  5. Actual: Nothing happens - no comment is added

Current vs. Expected behavior

Current behavior:

  • Comment toggle (cmd+/) works in YAML editors (Docker Compose)
  • Comment toggle (cmd+/) is completely non-functional in environment variable editors
  • This creates inconsistent UX across different code editors in the application

Expected behavior:

  • cmd+/ should work uniformly across all code editors, including environment variable and secret editors
  • The keyboard shortcut should add # line comments in env editors just like it does in YAML editors

Provide environment information

Operating System: Mac OS
Dokploy version: v0.29.4

Which area(s) are affected? (Select all that apply)

Local Development, Cloud Version

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions