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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

MFXFilterComboBox, Chinese characters can't be input #140

Closed
Hamster5295 opened this issue Feb 13, 2022 · 11 comments
Closed

MFXFilterComboBox, Chinese characters can't be input #140

Hamster5295 opened this issue Feb 13, 2022 · 11 comments
Labels
can't fix Something that can't be fixed even if I wanted to stale

Comments

@Hamster5295
Copy link

Before i start, i have to say that I LOVE the outstanding features very much! 馃樃

However, i've found it unable to text Chinese characters into the Search field of MFXFilterComboBox. I'm not familiar with character encodings so i can't figure out which part went wrong
It's a critical problem since i'm using it to create a Chinese font selector, where users will have to search through a bunch of fonts

Hope there will be a fix soon 馃崁

By the way, There's no Chinese translation in the repo currently. If i want to contribute, what should I do? 馃

@Hamster5295 Hamster5295 changed the title MFXFilterComboBox, Chinese characters can't be inputed MFXFilterComboBox, Chinese characters can't be input Feb 15, 2022
@Hamster5295
Copy link
Author

It's found that you CAN input these characters by copying and pasting them into the search box, but you CAN'T do it by typing with an input method (e.g. MSPY)

@Glavo
Copy link
Contributor

Glavo commented Mar 29, 2022

I looked into this Issue and it's an issue on MFXTextField. When it's placed in a Popup (javafx.stagePopup or MFXPopup), you can't use an input method on it.

I'm a novice user of MaterialFX, still looking at the demo, haven't started using it yet. I'll take some time to keep track of the issue, but it won't necessarily fix it.

@Glavo
Copy link
Contributor

Glavo commented Mar 29, 2022

After investigation, I found out that it is not MaterialFX causing the problem.

This is an issue on OpenJFX. When there is a TextField in the window, another TextField in the Popup that pops up on this window cannot be focused by the IME, and all input by the IME will appear in the TextField thar in the main window.

I will try to report the issue to OpenJFX.

@Glavo
Copy link
Contributor

Glavo commented Mar 29, 2022

Here is a short reproducer.

It's a window that contains TextField, and will pop up another TextField on the top left of the screen.

When you use the input method to input the upper left of the screen TextField, you will find that your input actually goes to the TextField in the main form.

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.stage.Popup;
import javafx.stage.Stage;

public class JFXTest extends Application {
    @Override
    public void start(Stage primaryStage) throws Exception {
        var root = new VBox(new TextField());
        primaryStage.setScene(new Scene(root, 100, 100));
        primaryStage.show();

        Popup popup = new Popup();
        popup.getContent().add(new TextField());
        popup.show(primaryStage, 0.0, 0.0);
    }

    public static void main(String[] args) {
        Application.launch(JFXTest.class, args);
    }
}

@Glavo
Copy link
Contributor

Glavo commented Mar 29, 2022

For non-Asian users, this problem can also be reproduced using the Windows emoji panel (Use the shortcut key Windows logo key + .(period) to open).

@Hamster5295
Copy link
Author

That's of great help. Thank you! 馃槈

@palexdev
Copy link
Owner

I'll try ro reproduce the issue and study a workaround if possible

Can't promise anything though. Sorry guys, it's been so tough lately, the university, MaterialFX a secret project for the JavaFX community that is talking a a lot of time, I'll do my best

@Glavo
Copy link
Contributor

Glavo commented Mar 29, 2022

I'll try ro reproduce the issue and study a workaround if possible

Can't promise anything though. Sorry guys, it's been so tough lately, the university, MaterialFX a secret project for the JavaFX community that is talking a a lot of time, I'll do my best

Thank you for your great work.

This is caused by an OpenJFX issue, which I've reported on the mailing list, and I think it should probably be resolved by someone at Oracle or Gluon.

@Glavo
Copy link
Contributor

Glavo commented Apr 8, 2022

The issue has been reported to Oracle and tracked by JBS, see JDK-8284583.

@palexdev palexdev added the can't fix Something that can't be fixed even if I wanted to label Apr 25, 2022
@stale
Copy link

stale bot commented May 23, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 23, 2022
@stale
Copy link

stale bot commented May 30, 2022

Closed for inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't fix Something that can't be fixed even if I wanted to stale
Projects
None yet
Development

No branches or pull requests

3 participants