Skip to content

Commit

Permalink
Mark RB as enterable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed May 29, 2024
1 parent 1f6873e commit 5ac9504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/js/dom/dom-text-scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 5ac9504

Please sign in to comment.