-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to Paste into InputText Control #5378
Comments
THanks sir ;) |
Hi @deltakosh and @BabylonJSGuide -Thanks |
It is all yours:) |
Go for it @ssaket |
It supports copy, paste, cut events (above) |
I have few doubts on system design, as a newbie its hard for me to figure out what's the best place to
One major impediment- |
This is fantastic :) |
Thanks, Sure ! |
@deltakosh - while working on this, I thought of a cool feature 🏷 In short - I think this will help the users to do fast prototyping by having a databank of files(.babylon) of their favourite meshes. Also, if I an drop (.babylon) files onto scene using (ctr-v) What do you think ? also adding @BabylonJSGuide |
Hahaha. Not sure this is something we want in the framework as it looks pretty specific and hard to discover |
Fair enough.. but I still would add them in snippets 😃 after I solve my re-triangulation problem Note* This patch can help only in copy and pasting within the ADT, users won't be able to use navigator's clipboard (); reasons:
|
I have realised how silly my idea was !! 🙊 This can be done in 5 line outside the framework, using -
#feelingEmbarrassed |
No worry:) |
Would be ok to create a doc for it? Thanks a lot (with sanples in the playground) |
Yeah ! Already created a PR - https://github.com/BabylonJS/Documentation/pull/1309 |
You rock |
is there a chance to get a method or property to select the text of the inputText if focused by default? |
@gernot-nu-IT not as of now, you have to manually add this in onFocusObservable; example- https://www.babylonjs-playground.com/#UWS0TS#22 Now that you have pointed it out, I think it makes sense to have a boolean property like onFocusSelectAll on input text which would allow this. |
@ssaket yes, I think it would be quite useful. also, if text is highlighted (like in your playground example) and you start typing, the highlighted text should be replaced. |
Agree! |
Done! |
is there an event listener for copy paste as i want to control how this are copied in the inputText |
Feature request
http://www.html5gamedevs.com/topic/40661-gui-input-text-behavior/
Use of CTRL + V to paste into inputText control
Useful Site (?) https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Interact_with_the_clipboard
The text was updated successfully, but these errors were encountered: