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.

Pressing < key in a german keyboard adds a \ instead

See original GitHub issue

Prerequisites

  • New issue

Description

On a german keyboard if you pres the key that normally types <, it would insert a \.

Actual behavior

lessThan

Expected Behavior

I expect that it normally adds a < as it should. On a german keyboard one can type \ on a separate key already. And the english keyboard also has a separate keys for \, < and >.

Steps to Reproduce

  1. Switch your keyboard to german.
  2. Try to type < in the mathlive input by pressing this key. image

Environment

Operating System [Windows]

Browser [Chrome,Firefox]

URL [https://mathlive.io/]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Khazuarcommented, Apr 19, 2020

I can confirm this. I’ve got a physical German keyboard, that I usually set to English keyboard layout for programming. The situation is complex, I assume the problem is that the German keyboard has slightly different physical keys (positioning and amount) than the English one.

20200419_102111

When I set the keyboard to English a number of keys swap their places, usually for the better (especially for programming). The weird shape of the “Enter”-key on German keyboards make the key-bindings there a little strange though compared to a physical US-keyboard. The key labeled with # and ' produces the \ (and | when holding shift) and is located about where the equivalent on a physical US keyboard would be. But then, there’s also the key labeled with <, > and | in the lower left of the keyboard that doesn’t seem to have a physical equivalence on US keyboards. On US-layout, that one will produce \ and | as well.

When I press that strange button with my keyboard set to German, Mathlive switches to command mode first and then types < for subsequent presses. Interestingly, adding

inlineShortcuts: {
  "<": "<",
},

fixes this strange behavior completely. Is the command-mode maybe triggered by the keycode or something rather then by what the current keyboard layout is producing?

0reactions
arnogcommented, May 1, 2020

This should now be fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tips for Typing German Characters With Your Computer
Here is help for using your computer keyboard to type in German, including tips and how to's.
Read more >
German keyboard layout - Wikipedia
Like many other non-American keyboards, German keyboards change the right Alt key into an Alt Gr key to access a third level of...
Read more >
Pressing E yields a euro sign "€" instead. What can I do to fix ...
I'm sure AltGr+E used to be the shortcut key when Euro first came along (so WIn 95 / 98 days). Possibly still the...
Read more >
What can I do when pressing a key produces the wrong result?
If a key is producing the wrong response, check that Windows has the correct settings for your location and the language used by...
Read more >
[SOLVED] Keyboard Typing Wrong Letters (2022) - Driver Easy
If you don't have a NUM key (if you're using a laptop), you'll need to press the FN key and the CAPS Lock...
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