Skip to content

Commit 4f59f41

Browse files
JesmoDeviOvergaard
authored andcommitted
add home and end
1 parent edeede4 commit 4f59f41

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/packages/core/components/split-panel/split-panel.element.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ export class UmbSplitPanelElement extends LitElement {
238238

239239
this.#setPosition(toPixels);
240240
}
241+
242+
if (event.key === 'Home' || event.key === 'End') {
243+
const { width } = this.mainElement.getBoundingClientRect();
244+
const newPos = event.key === 'Home' ? 0 : width;
245+
this.#setPosition(newPos);
246+
}
241247
}
242248

243249
render() {

0 commit comments

Comments
 (0)