Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard Navigation enhancements #6910

Merged
merged 223 commits into from
Apr 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
223 commits
Select commit Hold shift + click to select a range
a947c61
refactor(IgxCell): remove keydown handler from cell component #6747
ddincheva Feb 17, 2020
42aaf7b
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Feb 18, 2020
185e0d1
chore(*): remove focus, blur andkeydown from group row and summary ce…
ddincheva Feb 19, 2020
5af7e23
refactor(IgxGrid): move keydown listener to a grid level #6747
ddincheva Feb 19, 2020
e221e1a
refactor(GridNavigation): initial refactoring -keyboard navigation se…
ddincheva Feb 19, 2020
561190d
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Feb 19, 2020
f201f92
refactor(CRUD): move cell editing from cell editing logic to CRUD se…
ddincheva Feb 19, 2020
6cbecbf
refactor(*): remove tab from supported keys #6747
ddincheva Feb 19, 2020
54c90ff
refactor(IgxGrid): handle tab only when there is cell/row editing #6747
ddincheva Feb 19, 2020
8fe6a27
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Feb 19, 2020
5e9ac59
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Feb 20, 2020
4c865a4
chore(*): navigate correctly with tab when there is row in edit mode …
ddincheva Feb 20, 2020
3a37b15
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Feb 21, 2020
1c9a4f5
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Feb 21, 2020
9db189c
refactor(igx-grid): Small virtualization scrolls
rkaraivanov Dec 11, 2019
7ee94eb
chore(*): remove viewDetachHandler from the grid
ddincheva Feb 21, 2020
ec5d33a
refactor(*): move is active on row level #6747
ddincheva Feb 21, 2020
60a6bcc
refactor(*): remove tree grid navigation service #6747
ddincheva Feb 21, 2020
c72aebc
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Feb 24, 2020
8db6649
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Feb 24, 2020
c79b6c1
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Feb 25, 2020
0a63904
feat(*): remove tab indexes from grid headers #6747
ddincheva Feb 25, 2020
45928f5
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Feb 25, 2020
219d36e
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Feb 26, 2020
959f89d
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 2, 2020
f1a5def
fix(*): remove detached cells from row/summary row cell query lists #…
ddincheva Mar 2, 2020
2ee2768
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 2, 2020
2d22b18
chore(*): tab bahavior should be determined
ddincheva Mar 2, 2020
f516fa1
refactor(Filtering): initial refactoring of filtering navigation #6747
ddincheva Mar 6, 2020
5d9b586
feat(IgxGrid): separate grid to three main tab stops #6747
ddincheva Mar 6, 2020
c2fa6d8
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 6, 2020
5023c32
refactor(IgxGrid): remove KB navigation logic from filtering #6747
ddincheva Mar 10, 2020
2a15f05
feat(IgxGrid): initial implementation of KB navigation in column head…
ddincheva Mar 10, 2020
1a25c75
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 10, 2020
de1546c
chore(*): add tab index to the grid footer element
ddincheva Mar 10, 2020
efef1c7
refactor(*): remove tabindex from checkboxes in the grid #6747
ddincheva Mar 11, 2020
831c6a0
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 12, 2020
59ea83e
feat(IgxGrid): activate first cell when the container is focused #6747
ddincheva Mar 13, 2020
fbd6819
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 13, 2020
552b46a
refactor(*): refactor and remove unnecessary code snippets #6747
ddincheva Mar 13, 2020
70f7236
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 13, 2020
dc1a21c
refactor(IgxGrid): emit onGridKeyDown event #6747
ddincheva Mar 16, 2020
d311ab8
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 16, 2020
f0d09e9
feat(igxHierarhicalGrid): Basic kbnav - initial commit.
Mar 16, 2020
f5ccef2
chore(*): Extract common logic. Handle scenarios where child grid is …
Mar 16, 2020
e42c2c2
chore(*): Handling scenarios where target child row is not in child g…
Mar 16, 2020
3f9769a
chore(*): Refactoring and dcoumenting methods.
Mar 17, 2020
d0f872b
chore(*): Remove old code.
Mar 17, 2020
6a646f4
chore(*): Handling edge cases. Simplifying code.
Mar 17, 2020
9773ba5
chore(*): Handling more edge cases.
Mar 17, 2020
0f3ceea
chore(*): Handling more edge cases.
Mar 17, 2020
43f8fcd
chore(*): Handle edge case if child grid has no data.
Mar 17, 2020
b29b508
chore(*): Add handling for multiple sibling layouts.
Mar 17, 2020
4456b9a
chore(*): Additional handling in case one/all of child layout grids u…
Mar 17, 2020
1b809e9
chore(*): Ensure focus is called before parent offsets are calculated…
Mar 17, 2020
4f0d360
chore(*): Clear other grids active state when a new cell is activated.
Mar 17, 2020
5f73f97
chore(*): Add handling when moving between grid that have different c…
Mar 17, 2020
5856a72
chore(*): Prevent scroll when possible. Uncomment samples.
Mar 17, 2020
cad089d
chore(*): Handle scenario - moving up from parent row to a large chil…
Mar 17, 2020
4b2ffa7
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 18, 2020
3e8bb70
chore(*): Fix for issue when holding up/down arrow key continously an…
Mar 18, 2020
a48dc8f
chore(*): Additional fixes to prevent continous events from triggerin…
Mar 18, 2020
16674b2
chore(*): Fix scrolling issue when all child grids are expanded and t…
Mar 18, 2020
7e5184b
refactor(MRLNav): initial refactoring of mrl navigation service #6882
ddincheva Mar 18, 2020
7f635b6
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 19, 2020
5217aa8
chore(*): Instead of blur-ing grids to stop navigation, set a flag in…
Mar 19, 2020
a475a6a
chore(*): Remove console.log, add comment.
Mar 19, 2020
f42c2a0
chore(*): Handling scroll when moving from parent row into nested child.
Mar 19, 2020
8ce3c24
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 19, 2020
bf73dc7
refactor(KBNav): navigate correctly with left and right arrow in mrl…
ddincheva Mar 19, 2020
c1a86cc
chore(*): Add check whether child grid record top/ bottom is visible …
Mar 19, 2020
8a03a45
refactor(IgxGridNavigationService): update methods access modifiers #…
ddincheva Mar 19, 2020
20bc35e
chore(*): Delegate focus to correct parent when moving from a nested …
Mar 19, 2020
b59611f
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
ddincheva Mar 19, 2020
3261844
chore(*): Fix target grid issue.
Mar 19, 2020
adbb392
chore(*): Fix lint.
Mar 19, 2020
67b5a14
Merge branch 'ddincheva/focuslessKBNav' into mkirova/focuslessKBNav-h…
Mar 19, 2020
f3234c7
chore(*): Get correct target layout index for next nested childgrid a…
Mar 19, 2020
7c107bf
chore(*): update tests not to have build erros
nrobakova Mar 20, 2020
74f1108
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 23, 2020
cf5f14a
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
ddincheva Mar 23, 2020
1c8bde8
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
nrobakova Mar 23, 2020
50a05a6
chore(*): Fix minor issue when navigating with Ctrl + arrow up/down i…
Mar 23, 2020
b3c9936
feat(IgxMRLNav): update the layout correnctly when perform navigation…
ddincheva Mar 23, 2020
341c320
chore(*): update failing tests
nrobakova Mar 24, 2020
e9aaa72
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 24, 2020
3ca53bb
chore(*): Fix issue with ALT+arrow keys.
Mar 24, 2020
e8df848
fix(IgxGridNav): should be able to to expand/collapse groupRow with K…
ddincheva Mar 24, 2020
0a73826
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
nrobakova Mar 24, 2020
b4fdb67
chore(*): Fix issue with initial focusin in hierarchical grid.
Mar 24, 2020
4a2847f
chore(*): Fix issue with selection not selecting first child grid row…
Mar 24, 2020
ef93452
chore(*): Move callback resolution after scroll is complete.
Mar 24, 2020
c201f19
chore(*): update failing tests
nrobakova Mar 24, 2020
3bef5bd
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 25, 2020
2c6bc30
Merge pull request #6966 from IgniteUI/ddincheva/focuslessKBmrl
zdrawku Mar 25, 2020
76f7c50
chore(*): update failing tests
nrobakova Mar 25, 2020
6b1d5d9
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
ddincheva Mar 25, 2020
e69e925
chore(*): Apply review comment changes.
Mar 25, 2020
aed7f28
chore(*): Fix for issue when there is no next parent row to move to. …
Mar 25, 2020
8046118
chore(*): Remove unused imports.
Mar 25, 2020
c164659
chore(treeGrid): update treeGrid tests
nrobakova Mar 26, 2020
09d736c
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
nrobakova Mar 26, 2020
34e644a
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 26, 2020
1913572
chore(*): update failing tests
nrobakova Mar 26, 2020
a38af97
fix(IgxGrid): do not clear the selection on space pressed #6747
ddincheva Mar 26, 2020
4067e87
chore(*): Fix issue with moving activation in child cell that is not …
Mar 26, 2020
7dcf857
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 27, 2020
a75a31c
chore(*): update summaries tests
nrobakova Mar 27, 2020
4179346
chore(*): Fix issue with moving between siblings.
Mar 27, 2020
7272d33
fix(IgxGrid): should not be able to navigate with ctrl from non data …
ddincheva Mar 27, 2020
11c51d6
chore(tests): Udate master Details tests
nrobakova Mar 27, 2020
3733e8d
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
nrobakova Mar 27, 2020
41b4cc0
chore(*): update tree gris tests
nrobakova Mar 27, 2020
02cad10
fix(IgxGrid): should update range selection correctly when there grou…
ddincheva Mar 27, 2020
53babe6
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
nrobakova Mar 27, 2020
e8612b0
chore(MRL): update MRL tests Part1
nrobakova Mar 27, 2020
fc71dbf
chore(*): Fix issue with moving to next grid when next grid has no data.
Mar 27, 2020
1e16021
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 30, 2020
094f84b
chore(*): Add handling in case there is no active node to clear.
Mar 30, 2020
9147019
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
nrobakova Mar 30, 2020
0ea06f7
chore(*): update row editing tests
nrobakova Mar 30, 2020
cd9197d
Merge pull request #6945 from IgniteUI/nrobakova/focuslessKBNav-tests
zdrawku Mar 30, 2020
0996093
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Mar 31, 2020
e0887cc
chore(*): address the linting errors
ddincheva Mar 31, 2020
42d60ce
chore(*): Merge from base.
Mar 31, 2020
45b43e8
chore(*): Fix lint.
Mar 31, 2020
9110525
chore(*): update failing tests
nrobakova Mar 31, 2020
f305fde
merge: merge pr changes
nrobakova Mar 31, 2020
5c911d0
chore(*): Fixing first batch of tests.
Mar 31, 2020
5bd3358
chore(*): Fix next batch of tests.
Mar 31, 2020
6c655db
chore(*): Fixing another batch of tests.
Mar 31, 2020
b092176
chore(*): Fixing more tests.
Mar 31, 2020
a24614f
chore(*): Fixing more tests.
Mar 31, 2020
d1b9588
chore(*): Fix flicker.
Mar 31, 2020
218fdac
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Apr 1, 2020
9f5f2f1
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
ddincheva Apr 1, 2020
d110f58
chore(list): update failing list test
nrobakova Apr 1, 2020
564cc91
fix(kbNav): mrl: arrow left does not work
Aleksandyr Apr 1, 2020
cd570a5
feat(IgxGrid): initial implementation of header navigation #6999
ddincheva Apr 2, 2020
3306b82
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Apr 2, 2020
c6c8035
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
ddincheva Apr 2, 2020
79f9ca5
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
Aleksandyr Apr 2, 2020
1bc6342
fix(keyboard-nav): row editing does not find first/last edit col idx
Aleksandyr Apr 2, 2020
f9289fa
fix(keyboard-nav): navigate on the same row when no rowEditTabs
Aleksandyr Apr 2, 2020
f62ce2b
chore(*): update some of failing tests
nrobakova Apr 2, 2020
3286f29
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Apr 3, 2020
a478a34
fix(IgxGrid): fix navigation in MRL when press home key #6747
ddincheva Apr 3, 2020
3c39e95
chore(*): apply the fix and to ctrl + arrow left
ddincheva Apr 3, 2020
bf089a9
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
Aleksandyr Apr 3, 2020
4d28987
chore(*): Merge from base.
Apr 3, 2020
df5afec
chore(*): update failing test
nrobakova Apr 3, 2020
e18f8dc
chore(*): Update tests after review.
Apr 3, 2020
11abb92
chore(*): add missed updated file
nrobakova Apr 3, 2020
896a350
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
Aleksandyr Apr 3, 2020
d8aa91d
fix(keyboard-nav): prevent emmiting edit events twice
Aleksandyr Apr 3, 2020
79d12d2
chore(*): Fix ege case issue when next sibling has no data and nor is…
Apr 3, 2020
1c9cf53
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Apr 6, 2020
d0c8cf8
chore(*): exclude list test
nrobakova Apr 6, 2020
7e06cda
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
Aleksandyr Apr 6, 2020
54c572c
chore(*): Merge from base.
Apr 6, 2020
a774932
chore(*): Remove a tabIndex HostBinding that was probably forgottern …
Apr 6, 2020
51acf1b
chore(*): Resolve conflicts.
Apr 6, 2020
c33a4f9
chore(*): update failing tests
nrobakova Apr 6, 2020
d676a4e
chore(*): rename method simulateDoubleClickAndSelectCellEvent
nrobakova Apr 6, 2020
cc85779
chore(*): Resolve more conflicts.
Apr 6, 2020
67703e9
chore(*): revert renaming
nrobakova Apr 6, 2020
4497df9
chore(*): revert renaming
nrobakova Apr 6, 2020
21c6eb8
chore(*): Resolve more conflicts.
Apr 6, 2020
fd92733
chore(*): Update test as grid no longer has tab index on root element.
Apr 6, 2020
4962571
fix(IgxGrid): fix issues related with mrl navigation #6882
ddincheva Apr 6, 2020
fc9316c
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
ddincheva Apr 6, 2020
74176cc
fix(keyboard-nav): emit onSelection event on tbody focus
Aleksandyr Apr 6, 2020
e45d523
Revert "chore(*): Remove a tabIndex HostBinding that was probably for…
Apr 6, 2020
7cec869
Revert "chore(*): Update test as grid no longer has tab index on root…
Apr 6, 2020
9722c23
merge
Aleksandyr Apr 6, 2020
c766fba
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Apr 6, 2020
db04258
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Apr 7, 2020
06e8178
chore(*): update failing tests
nrobakova Apr 7, 2020
69b02a4
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
nrobakova Apr 7, 2020
267fbdf
fix(IgxGrid): fix lost focus when exit edit mode in edge #6747
ddincheva Apr 7, 2020
088a4a2
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
ddincheva Apr 7, 2020
6c3c89a
feat(IgxGrid): move pageup/down on tbody level #6747
ddincheva Apr 7, 2020
7457405
fix(kb-nav): navigate back from last to pev row when in edit
Aleksandyr Apr 7, 2020
a3868f8
Merge pull request #6935 from IgniteUI/mkirova/focuslessKBNav-hgrid
zdrawku Apr 7, 2020
f02beb0
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
Aleksandyr Apr 7, 2020
0220eaa
fix(hgrid-kb-nav): pass evt argument to focusTBody method
Aleksandyr Apr 7, 2020
e550748
chore(*): update pgUp and pgDown tests
nrobakova Apr 7, 2020
dc74595
Merge pull request #7035 from IgniteUI/focuslessKBNav-bugfixes
zdrawku Apr 7, 2020
97cc3b6
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Apr 7, 2020
55ab336
feat(IgxGrid): add activedescendant attribute to each focus-able cont…
ddincheva Apr 7, 2020
c36571d
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Apr 8, 2020
032e9f1
test(mrl-keyboard-nav): fix all releated tests
Aleksandyr Apr 8, 2020
faed4ee
chore(*): remove errors from mrl test
ddincheva Apr 8, 2020
ea218e3
chore(*): update failing tests
nrobakova Apr 8, 2020
f2f3ba3
chore(*): update failing tests
nrobakova Apr 8, 2020
6b1555f
fix(IgxGrid): focus first element when tab through each container #6747
ddincheva Apr 8, 2020
327fad2
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
ddincheva Apr 8, 2020
1742448
chore(*): try to remove testing zone to fix failing tests
nrobakova Apr 8, 2020
ea93517
fix(keyboard-nav): row edit cell test and overlay anim trigger
Aleksandyr Apr 8, 2020
6943455
chore(*): extend debounce time for mrl test
nrobakova Apr 8, 2020
a52b20f
fix(keyboard-nav): remove console log
Aleksandyr Apr 8, 2020
93de374
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
nrobakova Apr 8, 2020
d9777cc
fix(IgxGrid): update active node properly when you focus to the heade…
ddincheva Apr 8, 2020
ed5da86
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
ddincheva Apr 8, 2020
6e59faf
chore(*): remove the unnecessary tabIndex
ddincheva Apr 8, 2020
babe451
chore(*): update failing tests
nrobakova Apr 8, 2020
9024eb4
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
nrobakova Apr 8, 2020
e1d5493
chore(*): update failing test for column moving
ddincheva Apr 8, 2020
a6d18b1
chore(*): remove unnnecessary check for tabIndex in the header
ddincheva Apr 9, 2020
e38a822
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Apr 9, 2020
3149e4a
chore(*): update failing test
nrobakova Apr 9, 2020
ca36aeb
chore(*): update failing test
nrobakova Apr 9, 2020
6e2c112
fix(kb-nav): remove activeNode dependence of performing scroll
Aleksandyr Apr 9, 2020
f580d73
Merge branch 'master' of https://github.com/IgniteUI/igniteui-angular…
ddincheva Apr 9, 2020
ce1c9ce
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
ddincheva Apr 9, 2020
d85243f
fix(IgxGrid): remove tabIndex from the footer element #6747
ddincheva Apr 9, 2020
1c88e30
fix(IgxGrid): fix expand/collapse rows with KB #6747
ddincheva Apr 9, 2020
0fb98aa
chore(*): extend debunce time fo failing tests
nrobakova Apr 9, 2020
9660905
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
nrobakova Apr 9, 2020
be66e83
fix(IgxGrid): fix problem with cell editing and moving/ resizing #6747
ddincheva Apr 9, 2020
3648f7b
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
ddincheva Apr 9, 2020
f7c66c3
chore(*): update failing tests
nrobakova Apr 9, 2020
3b29ef2
Merge branch 'ddincheva/focuslessKBNav' of https://github.com/IgniteU…
nrobakova Apr 9, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion projects/igniteui-angular/src/lib/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ export interface CancelableBrowserEventArgs extends CancelableEventArgs {
event?: Event;
}

export const HORIZONTAL_NAV_KEYS = new Set(['arrowleft', 'left', 'arrowright', 'right', 'home', 'end']);

export const NAVIGATION_KEYS = new Set([
'down',
'up',
Expand All @@ -331,7 +333,7 @@ export const NAVIGATION_KEYS = new Set([
]);
export const ROW_EXPAND_KEYS = new Set('right down arrowright arrowdown'.split(' '));
export const ROW_COLLAPSE_KEYS = new Set('left up arrowleft arrowup'.split(' '));
export const SUPPORTED_KEYS = new Set([...Array.from(NAVIGATION_KEYS), 'tab', 'enter', 'f2', 'escape', 'esc']);
export const SUPPORTED_KEYS = new Set([...Array.from(NAVIGATION_KEYS), 'enter', 'f2', 'escape', 'esc', 'pagedown', 'pageup']);

/**
* @hidden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -879,15 +879,24 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
protected moveApplyScrollNext(prevIndex: number): void {
const start = prevIndex + this.state.chunkSize;
for (let i = start; i < start + this.state.startIndex - prevIndex && this.igxForOf[i] !== undefined; i++) {
const input = this.igxForOf[i];
const embView = this._embeddedViews.shift();
const cntx = embView.context;
cntx.$implicit = input;
cntx.index = this.getContextIndex(input);
cntx.count = this.igxForOf.length;
const view: ViewRef = this.dc.instance._vcr.detach(0);
this.dc.instance._vcr.insert(view);
this._embeddedViews.push(embView);
this._moveApply(i);
}
}

/**
*
*/
protected _moveApply(contextIndex: number, topPosition = false) {
const context = this.igxForOf[contextIndex];
const forOfContext = new IgxForOfContext<T>(context, this.getContextIndex(context), this.igxForOf.length);
const view = this.dc.instance._vcr.createEmbeddedView(this._template, forOfContext, topPosition ? 0 : undefined);
this.dc.instance._vcr.detach(topPosition ? this.dc.instance._vcr.length - 1 : 0);
if (topPosition) {
this._embeddedViews.pop();
this._embeddedViews.unshift(view);
} else {
this._embeddedViews.shift();
this._embeddedViews.push(view);
}
}

Expand All @@ -897,14 +906,7 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
*/
protected moveApplyScrollPrev(prevIndex: number): void {
for (let i = prevIndex - 1; i >= this.state.startIndex && this.igxForOf[i] !== undefined; i--) {
const input = this.igxForOf[i];
const embView = this._embeddedViews.pop();
const cntx = embView.context;
cntx.$implicit = input;
cntx.index = this.getContextIndex(input);
const view: ViewRef = this.dc.instance._vcr.detach(this.dc.instance._vcr.length - 1);
this.dc.instance._vcr.insert(view, 0);
this._embeddedViews.unshift(embView);
this._moveApply(i, true);
}
}

Expand Down
8 changes: 4 additions & 4 deletions projects/igniteui-angular/src/lib/grids/cell.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
<ng-template #inlineEditor let-cell="cell">
<ng-container *ngIf="column.dataType === 'string'">
<igx-input-group displayDensity="compact">
<input igxInput [value]="editValue" (input)="editValue = $event.target.value" [igxFocus]="focused" />
<input igxInput [value]="editValue" (input)="editValue = $event.target.value" [igxFocus]="true" />
</igx-input-group>
</ng-container>
<ng-container *ngIf="column.dataType === 'number'">
<igx-input-group displayDensity="compact">
<input igxInput [value]="editValue" (input)="editValue = $event.target.value" [igxFocus]="focused" type="number">
<input igxInput [value]="editValue" (input)="editValue = $event.target.value" [igxFocus]="true" type="number">
</igx-input-group>
</ng-container>
<ng-container *ngIf="column.dataType === 'boolean'">
<igx-checkbox (change)="editValue = $event.checked" [value]="editValue" [checked]="editValue"
[igxFocus]="focused" [disableRipple]="true"></igx-checkbox>
[igxFocus]="true" [disableRipple]="true"></igx-checkbox>
</ng-container>
<ng-container *ngIf="column.dataType === 'date'">
<igx-date-picker [style.width.%]="100" [outlet]="grid.outletDirective" mode="dropdown"
[locale]="grid.locale" [(value)]="editValue" [igxFocus]="focused" [labelVisibility]="false">
[locale]="grid.locale" [(value)]="editValue" [igxFocus]="true" [labelVisibility]="false">
</igx-date-picker>
</ng-container>
</ng-template>
Expand Down
Loading