简体   繁体   中英

How to disable arrow key navigation on PrimeNG Table

Is there a way to disable arrow key (left, right, up & down) navigation in Primng Table Stackblitz . ? Tab key should work.

I disable the following methods definition in \node_modules\primeng\fesm2015\primeng-table.js and now arrow keys don't navigate the cursor:-

  • onArrowUp(event)

  • onArrowDown(event)

  • onArrowLeft(event)

  • onArrowRight(event)

Methods should override with stopPropagation. Nice solution if create a directive to share this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM