mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-31 04:37:41 +00:00
Merge pull request #11470 from keymanapp/fix/web/error-without-neighbor
fix(web): fixes error on tab, enter when only a single input element is on the page
This commit is contained in:
commit
c5f8ca66bf
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ export default class DefaultBrowserRules extends DefaultRules {
|
|||
const contextManager = this.contextManager;
|
||||
const activeElement = contextManager.activeTarget?.getElement();
|
||||
const nextElement = contextManager.page.findNeighboringInput(activeElement, back);
|
||||
nextElement.focus();
|
||||
nextElement?.focus();
|
||||
}
|
||||
|
||||
switch(code) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue