From 5ac95046535ca234195071130040543b20929d23 Mon Sep 17 00:00:00 2001 From: kuuuube Date: Wed, 29 May 2024 16:29:19 -0400 Subject: [PATCH] Mark RB as enterable --- ext/js/dom/dom-text-scanner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/js/dom/dom-text-scanner.js b/ext/js/dom/dom-text-scanner.js index d5faec78f6..eb56baf949 100644 --- a/ext/js/dom/dom-text-scanner.js +++ b/ext/js/dom/dom-text-scanner.js @@ -418,10 +418,11 @@ export class DOMTextScanner { switch (element.nodeName.toUpperCase()) { case 'HEAD': case 'RT': - case 'RB': case 'SCRIPT': case 'STYLE': return {enterable: false, newlines: 0}; + case 'RB': + return {enterable: true, newlines: 0}; case 'BR': return {enterable: false, newlines: 1}; case 'TEXTAREA':