Prevent Highlight of Text Table

后端 未结 7 1945
悲&欢浪女
悲&欢浪女 2020-12-01 01:47

I have a table, and I\'m allowing users to \'select\' multiple rows. This is all handled using jQuery events and some CSS to visually indicate the row is \'selected\'. When

相关标签:
7条回答
  • 2020-12-01 02:14

    I simply remove the selection that is made using the shift key. This might show a little flicker though

    if (event.shiftKey) {
        window.getSelection().removeAllRanges()
    }
    
    0 讨论(0)
提交回复
热议问题