Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error with turkish keyboard #701

Merged
merged 1 commit into from
Jun 11, 2017
Merged

Fix error with turkish keyboard #701

merged 1 commit into from
Jun 11, 2017

Conversation

PabstMirror
Copy link
Contributor

@PabstMirror PabstMirror commented Jun 11, 2017

From ace's slack
Turkish-Q keyboard

Edit: quick summery

  • Keyboard has a double quote key
  • parseSimpleArray does not like parsing it (["""])
23:47:30 [0,9.361,0,"XEH: PreStart started."]
23:47:30 Error in expression <pportedKeys apply {

private _keyName = parseSimpleArray format ["[%1]", keyName>
23:47:30   Error position: <parseSimpleArray format ["[%1]", keyName>
23:47:30   Error Generic error in expression
23:47:30 File x\cba\addons\keybinding\XEH_preStart.sqf, line 168
23:47:33 [0,12.409,0,"XEH: PreStart finished."]

determined that

    private _string = format ["[%1]", keyName _x];
    private _result = parseSimpleArray _string select 0;
    diag_log text format ["[%1] = [%2]", _string, _result];

3:12:58 [["""]] = [any]

This handles the error and just uses two single quotes as the key name, which looks fine.
Can test and reproduce the error by changing input language in windows.

@PabstMirror PabstMirror added this to the 3.4 milestone Jun 11, 2017
@Killswitch00 Killswitch00 merged commit 4a10f32 into master Jun 11, 2017
@PabstMirror PabstMirror deleted the fixKeyBirdError branch June 11, 2017 14:46
@commy2
Copy link
Contributor

commy2 commented Jun 11, 2017

Thanks. Stupid game.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants