Open cycomachead opened 8 years ago
Yep, agreed!
So, I was taking a crack at this, and I realized I'm not sure which elements the context menu belongs to....
CursorMorph
doesn't make sense because you can't really click on the actual cursor!StringMorph
is a good candidate, but many strings aren't editable, and when you have no text typed, you wouldn't be able to use paste. This would also probably mean TextMorph
as well.InputSlotMorph
, FrameMorph
, InputFieldMorph
all could make sense because they have children which accept text. But then their menus need to check if they're editable, and eventually access a CursorMorph since that's where the browser interaction lies.Those seem to be the only 3 containers for text input, but I'm not sure...
TextMorph
For reference, coming to Safari (finally): https://webkit.org/blog/6017/introducing-safari-technology-preview/
Now that we can select text, and use keyboard shortcuts, we need to be able to do this from a GUI.
Because:
If there's a "selection", then "cut" and "copy" should show, otherwise, just "paste".
For future reference: https://hacks.mozilla.org/2015/09/flash-free-clipboard-for-the-web/