1. Paweł Kasperek
  2. PowerBuilder
  3. Monday, 4 September 2023 09:21 AM UTC

Hi,

 

I've got a question about the "Enter" shortcut on Ribbonbar.  Normally, for the filter, we can use "F5" button as a shortcut, but my client would use "Enter" key. Is it possible or does there exist any workaround to replace "F5" or add an additional "Enter" key as a shortcut to the clicked event?

The better solution, is it's possible to set more than one shortcut to the RibbonBar shortcut property?

 

Pawel

 

Accepted Answer
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 4 September 2023 16:11 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi,

I don't know the answer to your question, but just to say that (to me), it doesn't make sense to have the enter key as a short cut for anything else than inserting a new line when editing data. I think it would cause a lot of problems/work even if it would be possible, and I don't think it is.

 

regards.

 

Comment
  1. Paweł Kasperek
  2. Thursday, 7 September 2023 08:03 AM UTC
Hi,



Maybe my question wasn't clear. But I resolved my problem by overriding pbm_keydown event.

Thank you for helping



Regards,

Pawel
  1. Helpful
  1. Miguel Leeuwe
  2. Thursday, 7 September 2023 08:09 AM UTC
YW,

Glad you solved it. FYI: for the enter key there's a dedicated event called "pbm_processenter" (if I remember well).

regards.
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.