Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/windowing
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-09-02 22:17:26 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-09-02 22:17:26 +1000
commitac7577b4df91fbf31541f203e88eccb64b98365a (patch)
treebc69420c0cab776c49b27deeb93d9d2ffaff75c7 /source/windowing
parent566b0f4d362fb2858fe76dca805c4d2930da0f27 (diff)
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.
Diffstat (limited to 'source/windowing')
-rw-r--r--source/windowing/StarTextBoxWidget.cpp2
1 files changed, 1 insertions, 1 deletions
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;