question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
Rasmiscommented, Jan 11, 2021

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.

0reactions
fxhacommented, Dec 16, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't type opening square brackets.
Can't type opening square brackets. Hi,. I recently figured I cannot type opening bracket, only the closing character: ].
Read more >
Cannot enter square Brackets [ and ] - ASKSAGE
I have changed my keyboard layout to German in the file /etc/sysconfig/keyboard to KEYTABLE="de-latin1" MODEL="pc105+inet" LAYOUT="de" ...
Read more >
Why can't we use square brackets in the code below?
So I don't see why using square brackets will be a problem. Input[i] takes me to the vector pointer and then Input[i][j] takes...
Read more >
Why can't I type square brackets in the workspace console?
Im using a Swedish keyboard and I can't type square brackets in the workspace console. Why? Can someone help?
Read more >
French keyboard mapping - no square brackets in Wi...
I'll try to explain my problem as best as I can. I run a Windows XP3 VM in VMWare Fusion 3.1.1. Everithing's fine...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found