To check whether an ExternalText could be written with Epsilon's fonts,
UTF8Helper made a reference to Kandinsky, which is prohibited. This
check is now done in Escher, before dispatching the event.
Change-Id: I55e9db1ba43c3115775499db47b90a6bdd7cc7b3
Change the way the clipboard is fetched, so as to preserve the
Poincare/Python translation feature, and remove the cap on the length of
text being imported into the simulator.
Change-Id: I0f3e83c0c8aa4b64eb08d882aa6891b31f191e22
Wrote methods for accessing the system clipboard from the web
simulator, as the methods in SDL_Clipboard do not work when the video
device uses emscripten.
Change-Id: Ib2e66530a6b013eca0cf69fb52372e9e3a21c8bb
Add methods to interface Epsilon's clipboard with the system's when
running a simulator.
Note that the clipboard still uses a buffer located in the
Escher::Clipboard class, as some features require a buffer to execute
computations on the clipboard's content.
Change-Id: I14c19615805d38735e64d481c617863db22db9bc
The size of the ExternalText events shared buffer is now defined as the
size of the SDL_TextInputEvent 'text' field, as it should.
Also fix a wrong parameter being passed to a strlcpy.
Change-Id: I6a57d49d61fec8a009c4711efce564c65544e571
Generate an ExternalText event when catching a SDL_TextInputEvent whose
text cannot be boiled down to one of the regular events.
Change-Id: I036fa2a153c8351979521d7f8cba6b62aa64604b
Added an event to represent the typing of text that is not on the
device's keyboard. ExternalText event's text is read from a buffer, that
will be filled when the event is generated.
ExternalText only exists on the simulator.
Change-Id: Ie78d2c7c2de91da986a1ce2130a5ecd123db48ee
A previous fix to prevent AlphaLock from interfering with the long press
feature broke the long press selection. Revert the changes and find
another solution to the previous problem.
We compare the alpha status to both the state of the Alpha key and the
Lock, which makes sense : Lock is supposed to mimic Alpha being
continuously pressed.
Change-Id: I1349eb83f8971d3a5efcb10de020bb6c0aed64a1
This fixes the following bug :
(Anywhere with a movable cursor, like a table, a text field or a curve)
- press Alpha (once, or twice to activate the lock)
- keep pressing a direction
--> The cursor would only move once.
Change-Id: I46115d1a31ced244615bfdfe08f37dfe7e918d6e
When a formula is pasted in a script or in the shell, some symbols are
replaced by their equivalent in python :
x turns into *
^ turns into **
√ turns into sqrt
etc
Change-Id: If6f2a22d4f3c148c2655e0892023b0e28058a9a6