UNPKG
altinn-designsystem
Version:
beta (1.1.2)
latest (4.2.0)
4.2.0
4.1.0
4.0.0
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
2.7.12
2.7.11
2.7.10
2.7.9
2.7.8
2.7.7
2.7.6
2.7.5
2.7.4
2.7.3
2.7.2
2.7.1
2.7.0
2.6.2
2.6.1
2.6.0
2.5.3
2.5.2
2.5.1
2.5.0
2.4.0
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.1
2.2.0
2.1.0
2.0.21
2.0.20
2.0.19
2.0.18
2.0.17
2.0.16
2.0.15
2.0.14
2.0.13
2.0.12
2.0.11
2.0.10
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.2.21
1.2.20
1.2.19
1.2.18
1.2.17
1.2.16
1.2.15
1.2.14
1.2.13
1.2.12
1.2.11
1.2.10
1.2.9
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
0.2.67
0.2.66
0.2.65
0.2.64
0.2.63
0.2.62
0.2.61
0.2.60
0.2.59
0.2.58
0.2.57
0.2.56
0.2.55
0.2.54
0.2.53
0.2.52
0.2.51
0.2.50
0.2.48
0.2.47
0.2.46
0.2.45
0.2.44
0.2.43
0.2.42
0.2.41
0.2.40
0.2.39
0.2.38
0.2.37
0.2.36
0.2.35
0.2.34
0.2.33
0.2.32
0.2.31
0.2.30
0.2.29
0.2.28
0.2.27
0.2.26
0.2.25
0.2.24
0.2.23
0.2.22
0.2.21
0.2.20
0.2.19
0.2.18
0.2.17
0.2.16
0.2.15
0.2.14
0.2.13
0.2.12
0.2.11
0.2.10
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
Altinn Design system based on Pattern Lab.
github.com/Altinn/DesignSystem
Altinn/DesignSystem
altinn-designsystem
/
source
/
js
/
production
/
modules
/
clickableRow.js
13 lines
(12 loc)
•
339 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
setupOnKeypress =
function
(
) { $(
'body'
).
on
(
'keydown'
,
'.a-clickable, .a-selectable'
,
function
(
e
) {
var
key = e.
which
;
if
($(e.
target
).
hasClass
(
'a-clickable'
) || $(e.
target
).
hasClass
(
'a-selectable'
)) {
if
(key ===
13
) { $(
this
).
click
();
return
false
; } }
return
true
; }); };