From ac7577b4df91fbf31541f203e88eccb64b98365a Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 2 Sep 2024 22:17:26 +1000 Subject: Rename Keypad enums noticed keypad binds were named like this in SE (probably due to using the names given by SDL there) and it's nicer anyway. better do this sooner than later. --- source/windowing/StarTextBoxWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/windowing/StarTextBoxWidget.cpp') diff --git a/source/windowing/StarTextBoxWidget.cpp b/source/windowing/StarTextBoxWidget.cpp index 41b4696..634a006 100644 --- a/source/windowing/StarTextBoxWidget.cpp +++ b/source/windowing/StarTextBoxWidget.cpp @@ -284,7 +284,7 @@ bool TextBoxWidget::innerSendEvent(InputEvent const& event) { } return false; } - if (keyDown->key == Key::Return || keyDown->key == Key::Kp_enter) { + if (keyDown->key == Key::Return || keyDown->key == Key::KeypadEnter) { if (m_onEnterKey) { m_onEnterKey(this); return true; -- cgit v1.2.3