Skip to content

refactor(web): improve naming of _SetTargetDir function - #16311

Merged
ermshiperete merged 1 commit into
masterfrom
refactor/web/setTargetDir
Aug 10, 2026
Merged

refactor(web): improve naming of _SetTargetDir function#16311
ermshiperete merged 1 commit into
masterfrom
refactor/web/setTargetDir

Conversation

@ermshiperete

Copy link
Copy Markdown
Contributor

_SetTargetDir deals with setting the text direction of the target, not the target directory. This change mainly renames the private function to setTargetTextDirection.

Build-bot: skip build:web
Test-bot: skip

`_SetTargetDir` deals with setting the text direction of the target,
not the target directory. This change mainly renames the private function
to `setTargetTextDirection`.

Build-bot: skip build:web
Test-bot: skip
@keymanapp-test-bot

keymanapp-test-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

  • Web
    • KeymanWeb Test Home - build : all tests passed (no artifacts on BuildLevel "build")

@keymanapp-test-bot keymanapp-test-bot Bot added this to the A19S35 milestone Aug 7, 2026
@ermshiperete
ermshiperete requested a review from jahorton August 7, 2026 07:33
@ermshiperete
ermshiperete marked this pull request as ready for review August 7, 2026 07:33

@SabineSIL SabineSIL left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +31 to +33
if (!elem) {
return;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this change is not a change in behaviour. Looking more broadly, ideally this private function shouldn't really be silently no-oping on invalid inputs. We should, at least in a debug build, be throwing. This is a bigger issue through all the KMW code...

@ermshiperete
ermshiperete merged commit e772775 into master Aug 10, 2026
9 checks passed
@ermshiperete
ermshiperete deleted the refactor/web/setTargetDir branch August 10, 2026 11:53
@github-project-automation github-project-automation Bot moved this from Todo to Done in Keyman Aug 10, 2026
@keyman-server

Copy link
Copy Markdown
Collaborator

Changes in this pull request will be available for download in Keyman version 19.0.263-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants