dbeaver / dbeaver/dbeaver

Mouse click in Database Navigator does not change selection context if a menu is open

Open
#40,150 1 comment 0 reactions 0 assignees View on GitHub
xf:navigator xf:ui
Dominant language
Java
Stars
51.8k
Forks
4.4k
Avg merge
3d 13h
Merged PRs (30d)
183

Description

### Description

When using the "Database Navigator" side panel, clicking on the right mouse button brings up a menu. In most applications clicking somewhere else (with any mouse button) would update the selection to whatever you clicked on. However, in DBeaver, it merely closes the menu, requiring at least two (and sometimes three) separate click(s) to update the selection.

After the click that closes the menu (but does not update the selection), a further right-click on a non-selected item again does not change the selection but does open a menu, *but* it is based on the already selected context (which could be a completely different level -- database vs. user vs. table) and not the actual target of the click.

The expected behavior is that a mouse click would close any context menu, then select the clicked item if it is not already selected, and then, if a right-click, the opened menu would be derived from that potentially new selection.

### DBeaver Version

DBeaver Enterprise 25.2.0.202509081303

### Operating System

RedHat Linux 9

### Database and driver

Oracle, oracle.jdbc.OracleDriver

### Steps to reproduce

One manifestation:

1. Select a table in the Database Navigator
2. Right-click on it to open the table menu
3. Move the mouse to another non-selected table and left-click it. The menu closes but the selected table does not change
4. Left-click that new table again. The selected table still does not change.
5. Left-click a third time, and the table selection does finally change.

The other:

1. Select a *database* in the Database Navigator
2. Right-click on it to open the database menu
3. Move the mouse to a *table* name and click with any mouse button. The menu closes but the selected table does not change
4. Right-click that table again. The selected table does not change but a menu opens with the previously selected *database* context

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.