Abaksoft Posted March 31, 2022 Share Posted March 31, 2022 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 31, 2022 Share Posted March 31, 2022 Hello, 3 minutes ago, Abaksoft said: Hoping you feel good and all Unigui community. Thank you! We also hope that you are all well. Are you saying that it's impossible to select text using the keys? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 31, 2022 Share Posted March 31, 2022 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() } }) } }); } 2 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted March 31, 2022 Author Share Posted March 31, 2022 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... ان شاء الله 1 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted April 1, 2022 Author Share Posted April 1, 2022 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... 1 Quote Link to comment Share on other sites More sharing options...
picyka Posted April 13, 2022 Share Posted April 13, 2022 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 Quote Link to comment Share on other sites More sharing options...
picyka Posted October 9, 2023 Share Posted October 9, 2023 On 4/13/2022 at 8:22 AM, picyka said: opened a ticket on the port FSD-4480 Could you put this fix in the next version? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.