Skip to content

When I type Japanese text, use of a tab key for letter selection inserts 4 spaces #1250

Closed

Description

@kouichi-c-nakamura

Description

  • Can you reproduce the issue?

Steps to reproduce

  1. Install Google Japanese Input to your Mac (this how I did, but I also confirmed the same behaviour with OS's default Japanese IME as well)
  2. Type Japanese text on a Mac.
  3. Choose a candidate of letters by pressing a tab key.
  4. Then, 4 spaces are inserted to the text.

Screen Shot 2019-08-08 at 7 59 08

Expected behavior:

While you're choosing a candidate of letters, tab keys should be ignored by MarkText. At this point, a Tab key is only used for going through suggested choices of letters.

The behaviour and key bindings can be dependent on IME of your choice, but I have never experienced this kind of issues in any of major editors, such as Atom or Typora.

This makes MarkText essentially unusable for Japanese users.

Actual behavior:

Tab key press is recognized by MarkText, and 4 spaces are inserted to the text.

Versions

  • Mark Text: 0.15.0
  • Operating system: macOS 10.14.6
  • Google Japanese Input 2.25.3700.1

Activity

  1. Jocs commented on Aug 10, 2019

    @Jocs
    Member

    @kouichi-c-nakamura Can you show me the Google Japanese Input download link, I'll download it and test this issue.

  2. kouichi-c-nakamura commented on Aug 10, 2019

    @kouichi-c-nakamura
    Author

    Thanks for responding!

    Web page is here: https://www.google.co.jp/ime/

    This should be the download link:

    https://tools.google.com/dlpage/japaneseinput/eula.html?platform=mac

    1. After installation, select Google Japanese Input as IME.
    2. Then type whatever, eg ai
    3. Google Japanese Input will show you a list of candidates. eg. Screen Shot 2019-08-10 at 8 55 38
    4. Now it's time for you to choose one by pressing a Tab key. And when you do it, Mark Text will insert 4 spaces.
  3. added
    ❓ confirmation needed
    on Aug 10, 2019
  4. shutingrz commented on Dec 5, 2021

    @shutingrz

    I am also using the Mac version of MarkText and have the same problem constantly.
    Not only with Google IME, but also with macOS default IME.

    This bug makes it very difficult for me to continue using MarkText.

  5. akiya3 commented on Jun 27, 2022

    @akiya3

    I got same problem

    MarkText ver: v0.17.1
    OS: macOS 12.2.1(intel CPU)
    IME: ATOK, Google

  6. 196Ikuchil commented on Aug 20, 2022

    @196Ikuchil

    Hello, @Jocs and everyone.

    I think the cause of this problem is this code.

    ContentState.prototype.tabHandler = function (event) {

    This handler shouldn't be called when the operation of 3. Choose a candidate goes on.
    And I confirmed that the problem doesn't occur if this function is commented out.

    Could anyone please fix this function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

❓ confirmation needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions