Jump to content

Enable enter keys in confirm dialogs


Go to solution Solved by VegaS™,

Recommended Posts

  • Active Member

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

  • Forum Moderator

Not tested.

uiCommon.py

This is the hidden content, please

 

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

  • Forum 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

  • Active Member

@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

  • Forum Moderator
  • Solution

No, you've to do it like this:

This is the hidden content, please

Edited by VegaS™
  • Metin2 Dev 16
  • Good 3
  • Love 9
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • 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.