summaryrefslogtreecommitdiff
path: root/plugingui/toggle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/toggle.cc')
-rw-r--r--plugingui/toggle.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/plugingui/toggle.cc b/plugingui/toggle.cc
index 6fdb6bc..39587de 100644
--- a/plugingui/toggle.cc
+++ b/plugingui/toggle.cc
@@ -65,24 +65,6 @@ void Toggle::setText(std::string text)
redraw();
}
-void Toggle::keyEvent(KeyEvent* keyEvent)
-{
- if(keyEvent->keycode == Key::character && keyEvent->text == " ")
- {
- if(keyEvent->direction == Direction::up)
- {
- clicked = false;
- internalSetChecked(!state);
- }
- else
- {
- clicked = true;
- }
-
- redraw();
- }
-}
-
bool Toggle::checked()
{
return state;