Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing / char doesn't produce fraction (bépo layout) #2414

Open
dcaillibaud opened this issue Jun 25, 2024 · 0 comments
Open

Typing / char doesn't produce fraction (bépo layout) #2414

dcaillibaud opened this issue Jun 25, 2024 · 0 comments

Comments

@dcaillibaud
Copy link

Description

On https://cortexjs.io/mathlive/demo/ typing a "/" char with my keyboard (bépo layout) display it without building a fraction.

Steps to Reproduce

go to https://cortexjs.io/mathlive/demo/ with a bépo keyboard layout, focus in the first input then type "+" then "1" then "/" (key 9 on qwerty | azerty keyboard) then "2"

Actual Behavior

display "+1/2" with latex code +1/2

image

Expected Behavior

(Required) What did you expect to happen instead?

Display a fraction with the latex code +\frac{1}{2}

Details

Here is a Keydown Event thrown by my "/" keystroke

{
  isTrusted: true,
  altKey: false,
  bubbles: true,
  cancelBubble: false,
  cancelable: true,
  charCode: 0,
  code: "Digit9",
  composed: true,
  ctrlKey: false,
  currentTarget: null,
  defaultPrevented: false,
  detail: 0,
  eventPhase: 0,
  isComposing: false,
  key: "/",
  keyCode: 191,
  location: 0,
  metaKey: false,
  repeat: false,
  returnValue: true,
  shiftKey: false,
  sourceCapabilities: InputDeviceCapabilities {firesTouchEvents: false},
  srcElement: input,
  target: input,
  timeStamp: 43702.60000002384,
  type: "keydown",
  view: Window {},
  which: 191
}

Environment

MathLive version 0.100.0

On Linux debian 12. It's the same with chromium & firefox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant