Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

Enable enter keys in confirm dialogs


ReFresh

Question

  • Premium

Hey guys,

is here someone who know how to enable ENTER keys in confirm dialogs? (I mean both ENTER keys - large and small on keyboard). Like you can press ENTER key in select character window to select the character, but for confirm dialogs.

Thanks for answers!

Sincerely,

ReFresh

Edited by ReFresh

I'll be always helpful! 👊 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
  • Moderator

No, you've to do it like this:

This is the hidden content, please

Edited by VegaS™
  • Metin2 Dev 4
  • Love 1
  • Good 1
Link to comment
Share on other sites

!-->
  • 0
  • Moderator

@Abel(Tiger)That's right, it's useless to re-declare the lambda function since we can call it from the default method, I really forgot it. 🧐

Edited by VegaS™
  • Love 1
Link to comment
Share on other sites

  • 0
  • Premium

@VegaS™ @Abel(Tiger) Thank you both guys!!

So I did it like that:

Spoiler
def Open(self):
		self.SetCenterPosition()
		self.SetTop()
		self.acceptButton.SetFocus() #ADDED THIS LINE
		self.Show()
        
 def SetAcceptEvent(self, event):
		self.acceptButton.SetEvent(event)
		self.acceptButton.OnIMEReturn = event #ADDED THIS LINE

 

Is that right solution? How did you thought?

I'll be always helpful! 👊 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Activity

    1. 0

      Need Help With Char_Item.cpp

    2. 0

      ULTERIUS2.COM

    3. 7

      Killua - Unholy God Set

    4. 2

      Visual studio 2022 compiling issue

    5. 991

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.