Jump to content

Select Text or Move Cursor inside UniEdit Hidden Filter ?


Abaksoft

Recommended Posts

Hello Sherzod,

Hoping you feel good and all Unigui community.

I a m trying to find a way, in an UniDBGrid, with hidden filters,

to select a text or simply to move the cursor inside an UniEdit Hidden Filter,  with keybord  (no mouse)

Result :  it jump to an other column.

Can you try ?

Many Thx.

 

 

1.png

Link to comment
Share on other sites

29 minutes ago, Abaksoft said:

to select a text or simply to move the cursor inside an UniEdit Hidden Filter,  with keybord  (no mouse)

21 minutes ago, Sherzod said:

Are you saying that it's impossible to select text using the keys?

If yes, try this approach:

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) {
    columns.forEach(function(col) {
        if (col.fedit) {
            col.fedit.getEl().dom.addEventListener('keydown', function(e) {
                if (e.keyCode == 37 || e.keyCode == 39) {
                    e.stopPropagation()
                }
            })
        }
    });
}

 

  • Thanks 2
Link to comment
Share on other sites

41 minutes ago, Sherzod said:

If yes, try this approach:

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts) {
    columns.forEach(function(col) {
        if (col.fedit) {
            col.fedit.getEl().dom.addEventListener('keydown', function(e) {
                if (e.keyCode == 37 || e.keyCode == 39) {
                    e.stopPropagation()
                }
            })
        }
    });
}

 

Thank you Maestro,

As i left now my office, i will test it tomorrow...

ان شاء الله

  • Like 1
Link to comment
Share on other sites

13 hours ago, Sherzod said:

If yes, try this approach

As usually, you are our Maestro.

That works fine :)

To be complete, i add keyCode :  36 (Home)  and 35 (End)

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
{
     columns.forEach(function(col) {
        if (col.fedit) {
            col.fedit.getEl().dom.addEventListener('keydown', function(e) {
                if (e.keyCode == 37 || e.keyCode == 39 || e.keyCode == 36 || e.keyCode == 35) {
                    e.stopPropagation()
                }
            })
        }
    });
}

Thanks again...

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
On 4/1/2022 at 5:47 AM, Abaksoft said:

As usually, you are our Maestro.

That works fine :)

To be complete, i add keyCode :  36 (Home)  and 35 (End)

function reconfigure(sender, store, columns, oldStore, oldColumns, eOpts)
{
     columns.forEach(function(col) {
        if (col.fedit) {
            col.fedit.getEl().dom.addEventListener('keydown', function(e) {
                if (e.keyCode == 37 || e.keyCode == 39 || e.keyCode == 36 || e.keyCode == 35) {
                    e.stopPropagation()
                }
            })
        }
    });
}

Thanks again...

opened a ticket on the port FSD-4480

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...