Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic use Enter Key to submit my node inliine edit argument? (Read 1007 times)
SAN
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 11
Joined: Feb 29th, 2024
use Enter Key to submit my node inliine edit argument?
Mar 1st, 2024 at 7:50am
Print Post  
I want to use Enter Key to submit my node inline edit argument. When I try to submit it I run into issue with the Arg type not matching. Any fix for this?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3253
Joined: Oct 19th, 2005
Re: use Enter Key to submit my node inliine edit argument?
Reply #1 - Mar 1st, 2024 at 7:53am
Print Post  
Fix for what exactly? What do you mean by submitting and Arg type not matching?
  
Back to top
 
IP Logged
 
SAN
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 11
Joined: Feb 29th, 2024
Re: use Enter Key to submit my node inliine edit argument?
Reply #2 - Mar 1st, 2024 at 8:01am
Print Post  
I am trying to use catch the textbox to submit the value by adding an eventlistener  but when I try to submit it checks the node event args
  
Back to top
 
IP Logged
 
SAN
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 11
Joined: Feb 29th, 2024
Re: use Enter Key to submit my node inliine edit argument?
Reply #3 - Mar 1st, 2024 at 8:02am
Print Post  
Would Like to know is there is any other way you suggest to do this
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3253
Joined: Oct 19th, 2005
Re: use Enter Key to submit my node inliine edit argument?
Reply #4 - Mar 1st, 2024 at 8:38am
Print Post  
Please post the event listener code.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
SAN
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 11
Joined: Feb 29th, 2024
Re: use Enter Key to submit my node inliine edit argument?
Reply #5 - Mar 1st, 2024 at 10:13am
Print Post  
I just need a way if it's possible for enterkey to submit the value of the text instead of switching to nexyt line
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3253
Joined: Oct 19th, 2005
Re: use Enter Key to submit my node inliine edit argument?
Reply #6 - Mar 1st, 2024 at 10:31am
Print Post  
try this -

Code
Select All
diagramView.addEventListener(
    Events.enterInplaceEditMode, function (sender, args)
    {
        args.control.addEventListener(
            'keydown', function (e)
            {
                if (e.keyCode == 13)
                    sender.endEdit(true);
            }, false);
});
 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3253
Joined: Oct 19th, 2005
Re: use Enter Key to submit my node inliine edit argument?
Reply #7 - Mar 7th, 2024 at 2:20pm
Print Post  
We have a property for this on other platforms and implemented it in this version -
https://mindfusion.eu/_beta/jsdiag442.zip

Code
Select All
diagramView.inplaceEditAcceptOnEnter = true; 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
SAN
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 11
Joined: Feb 29th, 2024
Re: use Enter Key to submit my node inliine edit argument?
Reply #8 - Mar 11th, 2024 at 10:42am
Print Post  
Works now thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint