[macOS] Combo allows the Enter press to complete IME to trigger default button
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Java
- Star
- 202
- Fork
- 206
- Merge trung bình
- 1 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 109
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eclipse-platform/eclipse.platform.swt
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eclipse-platform/eclipse.platform.swt#3761 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Win32] Table tooltip indexes cell font with subitem -1Có thể đã có người làm @fdesbiens đã nhận 7 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
eclipse-platform/eclipse.platform.swt#3752 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
eclipse-platform/eclipse.platform.swt#3546 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-platform/eclipse.platform.swt#3428 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 75/100
eclipse-platform/eclipse.platform.swt#3336 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eclipse-platform/eclipse.platform.swt
Issue tương tự
-
agent:working bug follow-up lane:auto
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Sanne/incus-spawn#1765 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Mend: dependency security vulnerability untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
opensearch-project/data-prepper#7219 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Update Java flags pageĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
PaperMC/docs#824 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày