FIX - make phone input and overlays CEF safe

This commit is contained in:
DerEchteAlec
2026-08-12 18:59:33 +02:00
parent ff7e00596b
commit b54839ee74
24 changed files with 730 additions and 112 deletions
+10
View File
@@ -5,6 +5,7 @@ import {
createDefaultHomeLayout,
deleteHomePage,
HOME_GRID_PAGE_SIZE,
homeKeyboardTarget,
MAX_HOME_GRID_PAGES,
moveHomeApp,
parseHomeLayout,
@@ -134,6 +135,15 @@ describe('home layout', () => {
expect(moved.grid[4]).toBe('notes')
})
it('provides bounded keyboard reorder targets without wrapping rows', () => {
expect(homeKeyboardTarget(defaults, 'grid', 1, 'right')).toBe(2)
expect(homeKeyboardTarget(defaults, 'grid', 3, 'right')).toBeNull()
expect(homeKeyboardTarget(defaults, 'grid', 0, 'up')).toBeNull()
expect(homeKeyboardTarget(defaults, 'grid', 0, 'down')).toBe(4)
expect(homeKeyboardTarget(defaults, 'dock', 1, 'left')).toBe(0)
expect(homeKeyboardTarget(defaults, 'dock', 1, 'down')).toBeNull()
})
it('shifts occupied grid slots instead of replacing their apps', () => {
const reordered = moveHomeApp(defaults, 'grid', 2, 'grid', 0)
expect(reordered.grid.slice(0, 5)).toEqual([