A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuematerial/vue-material/commit/7c10a09 below:

preventDefault only for specific keys · vuematerial/vue-material@7c10a09 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+6

-3

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+6

-3

lines changed Original file line number Diff line number Diff line change

@@ -216,11 +216,14 @@

216 216

window.removeEventListener('keydown', this.keyNavigation)

217 217

},

218 218

keyNavigation (event) {

219 -

event.preventDefault()

220 219

switch (event.key) {

221 -

case 'ArrowUp': this.setHighlight('up')

220 +

case 'ArrowUp':

221 +

event.preventDefault()

222 +

this.setHighlight('up')

222 223

break

223 -

case 'ArrowDown': this.setHighlight('down')

224 +

case 'ArrowDown':

225 +

event.preventDefault()

226 +

this.setHighlight('down')

224 227

break

225 228

case 'Enter': this.setSelection()

226 229

break

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4