diff --git a/gui/keyboard.cpp b/gui/keyboard.cpp
index d0262aac28..f193a1245d 100644
--- a/gui/keyboard.cpp
+++ b/gui/keyboard.cpp
@@ -16,20 +16,8 @@
along with TWRP. If not, see .
*/
-#include
-#include
#include
#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
#include "../data.hpp"
#include
@@ -61,18 +49,10 @@ GUIKeyboard::GUIKeyboard(xml_node<>* node)
mRendered = false;
currentLayout = 1;
- mAction = NULL;
KeyboardHeight = KeyboardWidth = 0;
if (!node) return;
- // Load the action
- child = FindNode(node, "action");
- if (child)
- {
- mAction = new GUIAction(node);
- }
-
mHighlightColor = LoadAttrColor(FindNode(node, "highlight"), "color", &hasHighlight);
mCapsHighlightColor = LoadAttrColor(FindNode(node, "capshighlight"), "color", &hasCapsHighlight);
@@ -330,7 +310,6 @@ int GUIKeyboard::SetRenderPos(int x, int y, int w, int h)
mRenderH = KeyboardHeight;
}
- if (mAction) mAction->SetActionPos(mRenderX, mRenderY, mRenderW, mRenderH);
SetActionPos(mRenderX, mRenderY, mRenderW, mRenderH);
return 0;
}
@@ -468,13 +447,8 @@ int GUIKeyboard::NotifyTouch(TOUCH_STATE state, int x, int y)
} else if ((int)key.key == KEYBOARD_ACTION) {
// Action
highlightRenderCount = 0;
- if (mAction) {
- // Keyboard has its own action defined
- return (mAction ? mAction->NotifyTouch(state, x, y) : 1);
- } else {
- // Send action notification
- PageManager::NotifyKeyboard(key.key);
- }
+ // Send action notification
+ PageManager::NotifyKeyboard(key.key);
}
} else if (state == TOUCH_HOLD) {
was_held = 1;
diff --git a/gui/objects.hpp b/gui/objects.hpp
index d26b0c2ed2..b5675d9aaf 100644
--- a/gui/objects.hpp
+++ b/gui/objects.hpp
@@ -872,7 +872,6 @@ class GUIKeyboard : public GUIObject, public RenderObject, public ActionObject
unsigned int KeyboardWidth, KeyboardHeight;
int rowY, colX, highlightRenderCount;
bool hasHighlight, hasCapsHighlight;
- GUIAction* mAction;
COLOR mHighlightColor;
COLOR mCapsHighlightColor;
};