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

register_code() not working properly. #316

Closed
nemoNoboru opened this issue May 10, 2016 · 2 comments
Closed

register_code() not working properly. #316

nemoNoboru opened this issue May 10, 2016 · 2 comments

Comments

@nemoNoboru
Copy link

calling
register_code(KC_AT);
unregister_code(KC_AT);
writes "2" not an "@" as intended.

@eltang
Copy link
Contributor

eltang commented May 10, 2016

KC_AT is a special alias. When you feed it to register_code, the part that contains the Shift will be truncated. You must write code like this.

register_code(KC_LSFT);
register_code(KC_2);
unregister_code(KC_2);
unregister_code(KC_LSFT);

@nemoNoboru
Copy link
Author

thanks eltang!

stash pushed a commit to stash/qmk_firmware that referenced this issue Nov 26, 2020
Co-authored-by: Drashna Jael're <drashna@live.com>
BlueTufa pushed a commit to BlueTufa/qmk_firmware that referenced this issue Aug 6, 2021
* First pass translating labels and UI elements

* scaffold out ZH

* Scaffold JA and ZH i18n catalogs

* Ignore everything beyond 2 chars for lang

 - for now ignore 5 character language codes
elpekenin pushed a commit to elpekenin/qmk_firmware that referenced this issue Feb 16, 2023
* Squashed commit of the following:

commit 0533d61
Author: Nick Brassel <nick@tzarc.org>
Date:   Thu Jul 7 08:56:39 2022 +1000

    Update keyboard.jsonschema

    Oops.

commit 95d6beb
Merge: ea8b4d8 744af00
Author: Nick Brassel <nick@tzarc.org>
Date:   Thu Jul 7 08:55:27 2022 +1000

    Merge branch 'develop' into sonix

commit ea8b4d8
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Sun Feb 13 15:23:10 2022 +0200

    update configs for chibios 2.11

commit 45fd6d3
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Thu Mar 3 18:31:14 2022 +0200

    use wait function for bootloader_jump

commit 3a3b621
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Thu Mar 3 17:41:48 2022 +0200

    add sonix sn32 in docs

commit 4fbcb68
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Thu Mar 3 14:57:18 2022 +0200

    sonix sn32f2xx platform support

* Update BL

* Add OneKey

* Fix jsonschema, fix missing mcu_reset

* remove old eeprom code

* simplify configs based on common ones

* 260: add board specific chconf

* fall back to periodic tic
timers aren't as good as we'd like. The VT in charge of them causes mayhem on double-buffered timers like CT16, resulting in random timekeeping

* common chconf.h: allow custom idle hooks

* Revert "common chconf.h: allow custom idle hooks"

This reverts commit 92d5f99.

* apparently you can just cheese the preprocessor

nice

* move usb specifics out of chibios configs

* more config cleanup

* 260: cleanup config.h

* Wear-Leveling driver for SN32 platform

* Fix typo on store_erase

* Rename SN32 WL driver, guard the last page

* Change page count

* Update ChibiOS-Contrib submodule

* Revert "fall back to periodic tic"

This reverts commit a39707f.

* Add k8 converted to info.json

* Cleanup rules.mk

* Move eeprom config to common k8, and verify via setup

* Fix via_iso compile error

* Sonix SN32 platform support

Squashed commit of the following:

commit c2a505582c7f2acb70d402a52bd28dc66d1812e4
Merge: 74b1b54 0c6e12c
Author: dexter93 <d3xter93@gmail.com>
Date:   Thu Oct 27 21:21:55 2022 +0300

    Merge pull request qmk#12 from dexter93/revert-11-sn32_up_wl

    Revert "Wear Leveling driver for SN32 platform"

commit 0c6e12c
Author: dexter93 <d3xter93@gmail.com>
Date:   Thu Oct 27 21:21:35 2022 +0300

    Revert "Wear Leveling driver for SN32 platform"

commit 74b1b54
Merge: 95b9528 3f4d1cb
Author: dexter93 <d3xter93@gmail.com>
Date:   Thu Oct 27 19:35:46 2022 +0300

    Merge pull request qmk#11 from Jpe230/sn32_up_wl

    Wear Leveling driver for SN32 platform

commit 3f4d1cb
Author: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Date:   Wed Oct 12 15:42:04 2022 -0500

    Change page count

commit 77f358d
Author: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Date:   Wed Oct 12 15:32:43 2022 -0500

    Rename SN32 WL driver, guard the last page

commit 40a8d85
Author: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Date:   Wed Oct 12 15:14:22 2022 -0500

    Fix typo on store_erase

commit 95b9528
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Wed Oct 12 23:11:54 2022 +0300

    260: cleanup config.h

commit 2dc6b43
Author: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Date:   Wed Oct 12 15:05:41 2022 -0500

    Wear-Leveling driver for SN32 platform

commit b21897a
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Wed Oct 12 22:50:33 2022 +0300

    more config cleanup

commit 4660b56
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Wed Oct 12 22:37:36 2022 +0300

    move usb specifics out of chibios configs

commit d6c6057
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Wed Oct 12 22:02:43 2022 +0300

    apparently you can just cheese the preprocessor

    nice

commit 7c84758
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Wed Oct 12 21:58:44 2022 +0300

    Revert "common chconf.h: allow custom idle hooks"

    This reverts commit 92d5f99.

commit 92d5f99
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Wed Oct 12 21:17:08 2022 +0300

    common chconf.h: allow custom idle hooks

commit a39707f
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Wed Oct 12 21:06:45 2022 +0300

    fall back to periodic tic
    timers aren't as good as we'd like. The VT in charge of them causes mayhem on double-buffered timers like CT16, resulting in random timekeeping

commit 2e95cef
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Wed Oct 12 21:02:01 2022 +0300

    260: add board specific chconf

commit 78ee352
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Wed Oct 12 20:59:10 2022 +0300

    simplify configs based on common ones

commit 33a4e82
Author: Dimitris Mantzouranis <d3xter93@gmail.com>
Date:   Wed Oct 12 20:53:20 2022 +0300

    remove old eeprom code

commit 90d9af2
Author: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Date:   Sat Oct 8 17:15:16 2022 -0500

    Fix jsonschema, fix missing mcu_reset

commit 14e3541
Author: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Date:   Sat Oct 8 17:10:26 2022 -0500

    Add OneKey

commit 420b913
Author: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Date:   Sat Oct 8 17:04:49 2022 -0500

    Update BL

commit 4f4408a
Author: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Date:   Sat Oct 8 17:03:32 2022 -0500

    Squashed commit of the following:

    commit 0533d61
    Author: Nick Brassel <nick@tzarc.org>
    Date:   Thu Jul 7 08:56:39 2022 +1000

        Update keyboard.jsonschema

        Oops.

    commit 95d6beb
    Merge: ea8b4d8 744af00
    Author: Nick Brassel <nick@tzarc.org>
    Date:   Thu Jul 7 08:55:27 2022 +1000

        Merge branch 'develop' into sonix

    commit ea8b4d8
    Author: Dimitris Mantzouranis <d3xter93@gmail.com>
    Date:   Sun Feb 13 15:23:10 2022 +0200

        update configs for chibios 2.11

    commit 45fd6d3
    Author: Dimitris Mantzouranis <d3xter93@gmail.com>
    Date:   Thu Mar 3 18:31:14 2022 +0200

        use wait function for bootloader_jump

    commit 3a3b621
    Author: Dimitris Mantzouranis <d3xter93@gmail.com>
    Date:   Thu Mar 3 17:41:48 2022 +0200

        add sonix sn32 in docs

    commit 4fbcb68
    Author: Dimitris Mantzouranis <d3xter93@gmail.com>
    Date:   Thu Mar 3 14:57:18 2022 +0200

        sonix sn32f2xx platform support

* Move led matrix config to info.json file

* removed all keyboard .c / .h files

* Remove define for LED_PIN_ON_STATE

* Remove rules.mk from ansi keymap

* Clean up led count defines

* Rework rules.mk

* Wear-Leveling driver for SN32 platform

Squashed commit of the following:

commit 3825989990504208ab3e5479172de2b5a112faeb
Author: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Date:   Wed Oct 12 15:42:04 2022 -0500

    Change page count

commit 5d1aa4b9f580bac0a4e337d403b1038f30ea69d3
Author: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Date:   Wed Oct 12 15:32:43 2022 -0500

    Rename SN32 WL driver, guard the last page

commit 581986bc92c7f5c21eac3e1177ea8de9ff4b2ee0
Author: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Date:   Wed Oct 12 15:14:22 2022 -0500

    Fix typo on store_erase

commit e31f2d153a549041dcf6724180e988527632a29d
Author: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Date:   Wed Oct 12 15:05:41 2022 -0500

    Wear-Leveling driver for SN32 platform

* Swap Chibios-Contrib for latest sn32_develop

* Missing piece, CUSTOM_MATRIX

* Remove custom matrix thing again

* Move more to info.json, and fix readme files

* missing readme file updates

* Update USB settings in info.json files

* centralize usb VID setting

* Remove unnecessary eeprom setup

* Correct info.json

* revert gitmodules

* chibios-contrib back to origin

* simplifying via json files

* Updateeeprom settings for ansi via

* Updates after review

* Remake via ansi to use standard windows ansi layout

* Fix missing defines

---------

Co-authored-by: pablin.123.ra@gmail.com <pablin.123.ra@gmail.com>
Co-authored-by: Dimitris Mantzouranis <d3xter93@gmail.com>
Co-authored-by: Thomas Bowman Mørch <thomas.git@bowmo.dk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants