EvHaus / doby-grid

An HTML table element on steroids.
Other
14 stars 5 forks source link

cmd+c scrolls at the bottom of the page #157

Open tbarbugli opened 9 years ago

tbarbugli commented 9 years ago

when I try to copy some text (OSX) the page scrolls down; eg. http://dobyjs.com/#grid-options-rowBasedSelection

tbarbugli commented 9 years ago

after bit of digging, it seems the problem is related to the text area trick (copySelected). my guess is that focusing that element causes the page to scroll to here the element is added.

EvHaus commented 9 years ago

Yeah, in order to properly support keyboard shortcuts DobyGrid has to steal focus from the page, which sometimes means that it causes the browser to scroll to that position. I'm sure there are ways we can fix this.