-function moveCursor(offset: number) {
- var active = document.activeElement;
- if (offset === 1 && active) {
- active = active.nextElementSibling;
- }
- if (offset === -1 && active) {
- active = active.previousElementSibling;
- }
- if (active && active instanceof HTMLElement) active.focus();
-}
+ moveCursor: function (offset: number) {
+ var active = document.activeElement;
+ if (offset === 1 && active) {
+ active = active.nextElementSibling;
+ }
+ if (offset === -1 && active) {
+ active = active.previousElementSibling;
+ }
+ if (active && active instanceof HTMLElement) active.focus();
+ },
+};