godotengine / godotengine/godot

SpinBox is missing context_menu_enabled property

Open
#91,666 1 comment 0 reactions 0 assignees View on GitHub
enhancement topic:gui
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

v4.2.2.stable.official [15073afe3]

### System information

Ubuntu

### Issue description

`LineEdit` comes with a `context_menu_enabled` property that allows the user to disable the right-click context menu.

`SpinBox` also does have a right-click context menu but appears to be missing the corresponding option to disable it.

I am currently working on a project where right-click context menu must be disabled as they'd cause issues.

### Steps to reproduce

See issue description.

### Minimal reproduction project (MRP)

n/a

Contributor guide

Open the contributing guide

Research direction

Start by comparing the existing context-menu handling in SpinBox with LineEdit's context_menu_enabled property, then locate the relevant UI control implementations. Done means SpinBox exposes the corresponding option and disabling it prevents the right-click context menu on Ubuntu; add or update regression coverage if the surrounding implementation provides tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, godot
Domain
game-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.