mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
[Input] Add extra shortcut_input input processing step to process Unicode character input with Alt / Ctrl modifiers, after processing of shortcuts.
This commit is contained in:
@@ -339,14 +339,14 @@ bool BaseButton::is_keep_pressed_outside() const {
|
||||
|
||||
void BaseButton::set_shortcut(const Ref<Shortcut> &p_shortcut) {
|
||||
shortcut = p_shortcut;
|
||||
set_process_unhandled_key_input(shortcut.is_valid());
|
||||
set_process_shortcut_input(shortcut.is_valid());
|
||||
}
|
||||
|
||||
Ref<Shortcut> BaseButton::get_shortcut() const {
|
||||
return shortcut;
|
||||
}
|
||||
|
||||
void BaseButton::unhandled_key_input(const Ref<InputEvent> &p_event) {
|
||||
void BaseButton::shortcut_input(const Ref<InputEvent> &p_event) {
|
||||
ERR_FAIL_COND(p_event.is_null());
|
||||
|
||||
if (!_is_focus_owner_in_shortcut_context()) {
|
||||
|
||||
Reference in New Issue
Block a user