Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
c9abc631
Unverified
Commit
c9abc631
authored
May 17, 2020
by
Hugo Locurcio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow searching with keyboard input by default in PopupMenu
See discussion in
https://github.com/godotengine/godot-proposals/issues/43
.
parent
d4599fff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
option_button.cpp
scene/gui/option_button.cpp
+0
-3
popup_menu.cpp
scene/gui/popup_menu.cpp
+1
-1
No files found.
scene/gui/option_button.cpp
View file @
c9abc631
...
@@ -334,9 +334,6 @@ OptionButton::OptionButton() {
...
@@ -334,9 +334,6 @@ OptionButton::OptionButton() {
popup
=
memnew
(
PopupMenu
);
popup
=
memnew
(
PopupMenu
);
popup
->
hide
();
popup
->
hide
();
add_child
(
popup
);
add_child
(
popup
);
// popup->set_pass_on_modal_close_click(false);
// popup->set_notify_transform(true);
popup
->
set_allow_search
(
true
);
popup
->
connect
(
"index_pressed"
,
callable_mp
(
this
,
&
OptionButton
::
_selected
));
popup
->
connect
(
"index_pressed"
,
callable_mp
(
this
,
&
OptionButton
::
_selected
));
popup
->
connect
(
"id_focused"
,
callable_mp
(
this
,
&
OptionButton
::
_focused
));
popup
->
connect
(
"id_focused"
,
callable_mp
(
this
,
&
OptionButton
::
_focused
));
popup
->
connect
(
"popup_hide"
,
callable_mp
((
BaseButton
*
)
this
,
&
BaseButton
::
set_pressed
),
varray
(
false
));
popup
->
connect
(
"popup_hide"
,
callable_mp
((
BaseButton
*
)
this
,
&
BaseButton
::
set_pressed
),
varray
(
false
));
...
...
scene/gui/popup_menu.cpp
View file @
c9abc631
...
@@ -1442,7 +1442,7 @@ PopupMenu::PopupMenu() {
...
@@ -1442,7 +1442,7 @@ PopupMenu::PopupMenu() {
during_grabbed_click
=
false
;
during_grabbed_click
=
false
;
invalidated_click
=
false
;
invalidated_click
=
false
;
allow_search
=
fals
e
;
allow_search
=
tru
e
;
search_time_msec
=
0
;
search_time_msec
=
0
;
search_string
=
""
;
search_string
=
""
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment