overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
134 stars 50 forks source link

Add copy and paste button to VR keyboard #130

Open ksuprynowicz opened 2 years ago

ksuprynowicz commented 2 years ago

Right now copying and pasting in VR is very inconvenient, requiring to either put down a contoller and use physical keyboard, or switching to desktop view in Steam VR and using copy/paste menu options there.

jae1911 commented 1 year ago

There's two designs that I find good from NeosVR which are:

  1. Paste button on the dashboard (tablet in the case of Overte) which pastes whatever content you have in clipboard (images, video links, ect) into the world NeosVR showing the "Paste content from clipboard" button

  2. Having a paste/copy button on the in-game keyboard (keyboard in the image by Turk) NeosVR keyboard showing a paste, select all and copy buttons

I feel like the second one could be what is most practical.

ksuprynowicz commented 1 year ago

I think that having it on VR keyboard would be the best solution, and should also be pretty simple to implement hopefully. The keyboard layout is defined in interface/resources/config/keyboard.json. Adding new Key::Type "Copy" and "Paste" to be processed in Key::Type Key::getKeyTypeFromString(const QString& keyTypeString) would be the best way to do this probably.

ksuprynowicz commented 1 year ago

I would be happy to help with C++ side if there are any problems.

alexderpyfox commented 1 year ago

This needs to be added

pontusedberg commented 1 year ago

Upping this to make it a priority

AleziaKurdis commented 1 year ago

Long time ago I had prepared the resources file for copy cut and paste for the keyboard:

key_paste key_copy key_cut

Feel free to use them of not.

There is also another thing missing on that keyboard that is annoying... there is no "=" key maybe you can add it by the same opportunity. This is a bit must to type url parameters. Here's the resource (also created log time ago) key_equal

AleziaKurdis commented 1 year ago

Just to make sure, the copy, cut, paste should operate the text selection clipboard, and not the create app entities clipboard.

AleziaKurdis commented 11 months ago

By the same time, if we could modify the handle (box entity) and turn this as a full plate under the keyboard, it would prevent the selection beam to fall between the keys and go hit what is behind. This is very annoying as it change the selection when we are editing. (By the way, long time ago, it was like that)