diff options
Diffstat (limited to 'src/guichan/widgets/checkbox.cpp')
-rw-r--r-- | src/guichan/widgets/checkbox.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/guichan/widgets/checkbox.cpp b/src/guichan/widgets/checkbox.cpp index c7ec3e1e0..413f8e6af 100644 --- a/src/guichan/widgets/checkbox.cpp +++ b/src/guichan/widgets/checkbox.cpp @@ -99,16 +99,8 @@ namespace gcn mCaption = caption; } - void CheckBox::keyPressed(KeyEvent& keyEvent) + void CheckBox::keyPressed(KeyEvent& keyEvent A_UNUSED) { - Key key = keyEvent.getKey(); - - if (key.getValue() == Key::ENTER || - key.getValue() == Key::SPACE) - { - toggleSelected(); - keyEvent.consume(); - } } void CheckBox::mouseClicked(MouseEvent& mouseEvent) |