[apps/code] Put cursor inside parentheses when inserting function

In Code::VariableBoxController.

Change-Id: Ib129781d46159c017bcb02e97c6667b6084f5b67
This commit is contained in:
Léa Saviot
2018-05-16 11:44:48 +02:00
committed by EmilieNumworks
parent 291958a901
commit 99f6d73e19
4 changed files with 7 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
#include "script_node.h"
#include "script_store.h"
#include <escher/table_cell.h>
#include <ion/charset.h>
#include <kandinsky/coordinate.h>
namespace Code {
@@ -22,6 +23,7 @@ public:
void reloadCell() override;
constexpr static char k_parentheses[] = "()";
constexpr static char k_parenthesesWithEmpty[] = {'(', Ion::Charset::Empty, ')', 0};
protected:
class ScriptNodeView : public HighlightCell {
public: