Update CodeEditor.cpp

Fixed bug with right-clicking editor