apache / apache/netbeans

Add automatic closing of the menu IntelliSense.

Open
#4,942 6 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage PHP
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 15

### What happened

I noticed that the cursor in the text editor is not moving correctly. (PHP) The point is that when you write text, the context menu for substituting functions and fields opens. It's good. BUT! when you add the menu command, it interferes. I.e. when the menu is open, then pressing the cursor arrows Up, Down the cursor moves up and down the menu. But if you press left to right, the cursor blocks typing altogether. You have to press Esc every time. There is no such behavior in any editor. Pressing the Left and Right arrow keys should close the context menu without pressing Esc. What do you think, why can't they fix it?

### How to reproduce

When writing the code, after entering each character, the context menu opens. When the menu is open, pressing the LEFT and RIGHT arrow (Home,End) keys cannot close the context menu.
The menu should be closed automatically when the cursor buttons are pressed, which do not affect the selection of a position in the open menu. The Home and End buttons should also close the menu automatically.

### Did this work correctly in an earlier version?

Apache NetBeans 15

### Operating System

Windows 11

### JDK

18

### Apache NetBeans packaging

Apache NetBeans binary zip

### Anything else

When typing, the menu opens automatically, but it may not open in principle. The idea is that the menu is open or not open, it should not affect the typing, and the open menu should not block the cursor arrows Left, Right, Home,End. Because it is difficult to predict the behavior of the editor when you expect that the left and right arrows will work, but suddenly the menu opens and blocks the cursor in the text, But the menu may not appear, and then it is generally difficult to understand when it will appear and when it will not appear.

### Are you willing to submit a pull request?

Yes

### Code of Conduct

Yes

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the PHP editor on Apache NetBeans 15 with IntelliSense open, then trace the editor's handling of Left, Right, Home, and End keys. Done means those keys close the completion menu and restore normal cursor movement without requiring Esc; verify the behavior on Windows 11 with JDK 18.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, php
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.