Announcement

Collapse
No announcement yet.

Disable selection of items on key presses

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disable selection of items on key presses

    Hello!

    Please tell me how to disable the selection of elements in ListBox when pressing keys?

  • #2
    Can you give an example or images or a project ?

    Comment


    • #3
      Originally posted by sameer valva View Post
      Can you give an example or images or a project ?
      I don't know how to give an example to be honest. The fact is that when the focus is on the ListBox and we press some of the keys on the keyboard (for example, the down arrow), then it selects the item below. And I need it not to respond to keystrokes.

      Comment


      • #4
        So you need only mouse ? or you need specific keys to be prevented ?

        Comment


        • #5
          Originally posted by sameer valva View Post
          So you need only mouse ? or you need specific keys to be prevented ?
          I need my keyboard shortcuts in ListBox to work, but the selection of items does not work when the letter keys are pressed. If we press the key with the letter L, then the element with the letter L. will be selected in the object. And if I need to press the combination ctrl + l, then my function will be executed, but the selection of the element will also work. I don't need this

          Comment


          • #6
            ctaty3 , It's hard to work out what you are after without you supplying example of your apz or code you have used.
            I have made an example from what I can gather you are trying to do

            ListBox Keys.apz
            Cheers

            Comment


            • #7
              Originally posted by colc View Post
              ctaty3 , It's hard to work out what you are after without you supplying example of your apz or code you have used.
              I have made an example from what I can gather you are trying to do

              [ATTACH]n307248[/ATTACH]
              Cheers
              The idea is clear, thanks a lot!

              Comment

              Working...
              X