add home and end
This commit is contained in:
committed by
Jacob Overgaard
parent
1d769bbfc5
commit
9709718fa3
@@ -238,6 +238,12 @@ export class UmbSplitPanelElement extends LitElement {
|
||||
|
||||
this.#setPosition(toPixels);
|
||||
}
|
||||
|
||||
if (event.key === 'Home' || event.key === 'End') {
|
||||
const { width } = this.mainElement.getBoundingClientRect();
|
||||
const newPos = event.key === 'Home' ? 0 : width;
|
||||
this.#setPosition(newPos);
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user