Skip to content

Cannot enter sqare brackets (“[” and “]”) in v0.16.2  #2359

Closed

Description

@odkr

Description

No character is entered when I press <Alt>+<5> ("[" on a German keyboard) or <Alt>+<6> ("]").

  • Can you reproduce the issue?

Steps to reproduce

  1. Open Mark Text.
  2. Press <Alt>+<5> or <Alt>+<6> (on a German keyboard).

No character appears.

Expected behavior:

"[" or "]" respectively should be entered.

Actual behavior:

Neither "[" or "]" are entered.

Versions

  • Mark Text version: v0.16.2
  • Operating system: macOS v10.14.6

Activity

  1. dhose commented on Oct 15, 2020

    @dhose

    I have this problem as well, but on a Swedish keyboard. Alt+4 ("$") does not work for me either

    Versions

    • Mark Text version: v0.16.2
    • Operating system: macOS v10.15.6
  2. brainchild0 commented on Oct 24, 2020

    @brainchild0
    Contributor

    Probably duplicate of #2235.

  3. RasmusMalver commented on Jan 11, 2021

    @RasmusMalver

    This issue affects Mac users in every language but American. It is a grave error. Alt and shift are always for typing. They can only be used for shortcuts when used with ctrl or cmd.

    The issue can be mitigated by adding the file keybindings.json to ~/Library/Application Support/marktext with this content:

    {
        "tabs.switch-to-first": "",
        "tabs.switch-to-second": "",
        "tabs.switch-to-third": "",
        "tabs.switch-to-fourth": "",
        "tabs.switch-to-fifth": "",
        "tabs.switch-to-sixth": "",
        "tabs.switch-to-seventh": "",
        "tabs.switch-to-eighth": "",
        "tabs.switch-to-ninth": "",
        "tabs.switch-to-tenth": ""
    }
    

    The fastest way is to open terminal and type nano "~/Library/Application Support/marktext/keybindings.json". Paste the text, press [ctrl]+[o], [ctrl]+[x] to save and exit. Solution copied from #2299

    Obviously a different shortcut can be supplied.

    Same issue as #2235, #2299, #2376 and #2359.

  4. epeios-q37 commented on Jan 11, 2021

    @epeios-q37

    Someone suggests that #2235 is related to #2225. There is a workaround for #2225, which is to set GTK_IM_MODULE environment variable to xim. This workaround works under Linux, don't know if GTK_IM_MODULE environment variable is of some use on macOS…
    See https://bugs.chromium.org/p/chromium/issues/detail?id=1129424

  5. brainchild0 commented on Jan 11, 2021

    @brainchild0
    Contributor

    Suggest closing in favor of #2235.

  6. fxha commented on Dec 16, 2021

    @fxha
    Contributor

    Thank you for reporting the issue. We noticed that this is a duplicate and closing it in favor of #2235. You may want to subscribe there for further updates.

  7. added
    🐛 bug
    🪲 pri/major
    on May 16, 2026
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

    🪲 pri/major🐛 bug🔭 area/editor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions