Skip to content

Commit

Permalink
Avoid IME issue after "Edit comment" in #880
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed Mar 17, 2021
1 parent 9b53d93 commit 459cbbf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/featurecat/lizzie/gui/LizzieFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,11 @@ protected void paintComponent(Graphics g) {
createBufferStrategy(2);
bs = getBufferStrategy();

// avoid IME issue
// https://github.com/featurecat/lizzie/pull/880#issuecomment-800804632
// https://github.com/yzyray/lizzie_adv/commit/e5e8be01b4e072615250e4c4cc8462938b7c0332
mainPanel.enableInputMethods(false);

Input input = new Input();

mainPanel.addMouseListener(input);
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/featurecat/lizzie/gui/LizzieMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ protected void paintComponent(Graphics g) {

setVisible(true);

// avoid IME issue
// https://github.com/featurecat/lizzie/pull/880#issuecomment-800804632
// https://github.com/yzyray/lizzie_adv/commit/e5e8be01b4e072615250e4c4cc8462938b7c0332
enableInputMethods(false);

input = new Input();
// addMouseListener(input);
addKeyListener(input);
Expand Down

0 comments on commit 459cbbf

Please sign in to comment.