You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fixed 'nonexistent action' errors spammed at startup on OSX
This commit is contained in:
@@ -694,7 +694,7 @@ void InputMap::load_default() {
|
|||||||
|
|
||||||
// For the editor, only add keyboard actions.
|
// For the editor, only add keyboard actions.
|
||||||
if (iek.is_valid()) {
|
if (iek.is_valid()) {
|
||||||
action_add_event(fullname, I->get());
|
action_add_event(name, I->get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1578,11 +1578,11 @@ void RichTextLabel::_gui_input(Ref<InputEvent> p_event) {
|
|||||||
if (k->is_pressed()) {
|
if (k->is_pressed()) {
|
||||||
bool handled = false;
|
bool handled = false;
|
||||||
|
|
||||||
if (k->is_action("ui_pageup") && vscroll->is_visible_in_tree()) {
|
if (k->is_action("ui_page_up") && vscroll->is_visible_in_tree()) {
|
||||||
vscroll->set_value(vscroll->get_value() - vscroll->get_page());
|
vscroll->set_value(vscroll->get_value() - vscroll->get_page());
|
||||||
handled = true;
|
handled = true;
|
||||||
}
|
}
|
||||||
if (k->is_action("ui_pagedown") && vscroll->is_visible_in_tree()) {
|
if (k->is_action("ui_page_down") && vscroll->is_visible_in_tree()) {
|
||||||
vscroll->set_value(vscroll->get_value() + vscroll->get_page());
|
vscroll->set_value(vscroll->get_value() + vscroll->get_page());
|
||||||
handled = true;
|
handled = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user