[macOS] Combo allows the Enter press to complete IME to trigger default button
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
調査の方向性
Start with the macOS implementation of SWT Combo and its keyboard/input-method event handling; the issue does not name a source file or test. Reproduce with the supplied Java snippet using the Japanese - Kana layout, then check that Enter accepts an active IME composition without activating the shell's default button, while Enter with no popup still activates it.
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When using the "Japanese - Kana" keyboard layout, a popup with some suggestions may occur. Pressing Enter there should accept the selection to produce some "Japanese characters/words" in the underlying control. Nothing else. However, doing that with an editable Combo pressing Enter also triggers the default button in that shell which should not be possible while a IME popup is still visible.
To Reproduce
- run this snippet
import org.eclipse.swt.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;
public class ComboBoxTest {
public static void main(String[] args) {
final Display display = new Display();
final Shell shell = new Shell(display);
shell.setLayout(new GridLayout(1, false));
final Combo combo = new Combo(shell, SWT.BORDER);
combo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
final Button button = new Button(shell, SWT.PUSH);
button.setText("Push me!");
button.setLayoutData(new GridData(SWT.END, SWT.FILL, false, false));
shell.setDefaultButton(button);
button.addListener(SWT.Selection, event -> System.out.println("Button pressed"));
shell.setSize(400, 300);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose();
}
}
- select "Japanese - Kana" keyboard layout
- type some characters, e.g. abc until a popup occurs; press Enter; a blue underline occurs, press Enter again
Expected behavior
The character(s) shown in the popup should be accepted. Only when no IME popup is shown, an Enter press must trigger a default button.
Screenshots
https://github.com/user-attachments/assets/3457ca4d-b6e7-4097-bcfa-ddab9c58c079
Environment:
- Select the platform(s) on which the behavior is seen:
- All OS
- Windows
- Linux
- macOS
- 主要言語
- Java
- スター
- 202
- フォーク
- 206
- 平均マージ
- 20時間 20分
- マージ済み PR(30日)
- 113
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-platform/eclipse.platform.swt のほかの issue
-
`SWT_AWT.initFrame` takes `(long, String)` in Java; the GTK native declares no `className` and the Cocoa native types it `const char *`対応中かも @GreenFuze が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
eclipse-platform/eclipse.platform.swt#3665 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
eclipse-platform/eclipse.platform.swt#3546 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
eclipse-platform/eclipse.platform.swt#3428 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 75/100
eclipse-platform/eclipse.platform.swt#3336 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
eclipse-platform/eclipse.platform.swt#3718 ·
メンテナーはふだん 1 日以内に返信
eclipse-platform/eclipse.platform.swt の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apache/rocketmq-dashboard#6896 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
OpenIntegrationEngine/engine#496 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
SasanLabs/VulnerableApp#836 ·
メンテナーはふだん 1 日以内に返信
-
enhancement frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
Albertinesilva/backend-engineering-journey-java-springboot#46 ·
-
Snyk: vulnerabilities in jackson-databind 2.21.5対応中かも @harrywu23 が今日担当しました。 オープンbug
難易度 1/5 1〜3時間 初心者へのやさしさ 80/100
SOFTENG-310-Group-4/Project-A1-310-Group-4#115 ·
メンテナーはふだん 1 日以内に返信