# Path: pyilper/pilcore.py
# def isMACOS():
#    return platform.system()=="Darwin"


from PyQt5 import QtCore
from .pilcore import isMACOS
        QtCore.Qt.Key_F3 | KEYBOARD_CTRL | KEYBOARD_SHIFT:   [226], # --
        QtCore.Qt.Key_F4 | KEYBOARD_CTRL | KEYBOARD_SHIFT:   [227], # --
        QtCore.Qt.Key_Up   | KEYBOARD_CTRL | KEYBOARD_SHIFT: [228], # --
        QtCore.Qt.Key_Down | KEYBOARD_CTRL | KEYBOARD_SHIFT: [229], # --
        QtCore.Qt.Key_Left | KEYBOARD_CTRL | KEYBOARD_SHIFT: [230], # find prv char
        QtCore.Qt.Key_Right| KEYBOARD_CTRL | KEYBOARD_SHIFT: [231], # find next char
        QtCore.Qt.Key_Insert | KEYBOARD_CTRL | KEYBOARD_SHIFT:[232], # --
        QtCore.Qt.Key_F5 | KEYBOARD_CTRL | KEYBOARD_SHIFT:   [233], # --
        QtCore.Qt.Key_Delete | KEYBOARD_CTRL | KEYBOARD_SHIFT:[234], # --
        QtCore.Qt.Key_F6 | KEYBOARD_CTRL | KEYBOARD_SHIFT:    [255], # reset
        QtCore.Qt.Key_F7  | KEYBOARD_CTRL | KEYBOARD_SHIFT:  [232], #  --
        QtCore.Qt.Key_F8  | KEYBOARD_CTRL | KEYBOARD_SHIFT:  [237], # Reset
        QtCore.Qt.Key_Backtab | KEYBOARD_CTRL | KEYBOARD_SHIFT:  [238], # --



#       map PC keyboard keys to HP special characters
        0xc4 : [21],                      # Ä
        0xd6 : [23],                      # Ö
        0xdc : [25],                      # Ü
        0xc4 | KEYBOARD_SHIFT : [22],     # ä
        0xd6 | KEYBOARD_SHIFT : [24],     # ö
        0xdc | KEYBOARD_SHIFT : [26],     # ü
        QtCore.Qt.Key_sterling : [30]    # Sterling

}

#
# add special shortcuts for macOS to the HP-71 and HP-75 keymap
#

# Path: pyilper/pilcore.py
# def isMACOS():
#    return platform.system()=="Darwin"


# Path: pyilper/pilkeymap.py
from PyQt5 import QtCore
from .pilcore import isMACOS

        QtCore.Qt.Key_F3 | KEYBOARD_CTRL | KEYBOARD_SHIFT:   [226], # --
        QtCore.Qt.Key_F4 | KEYBOARD_CTRL | KEYBOARD_SHIFT:   [227], # --
        QtCore.Qt.Key_Up   | KEYBOARD_CTRL | KEYBOARD_SHIFT: [228], # --
        QtCore.Qt.Key_Down | KEYBOARD_CTRL | KEYBOARD_SHIFT: [229], # --
        QtCore.Qt.Key_Left | KEYBOARD_CTRL | KEYBOARD_SHIFT: [230], # find prv char
        QtCore.Qt.Key_Right| KEYBOARD_CTRL | KEYBOARD_SHIFT: [231], # find next char
        QtCore.Qt.Key_Insert | KEYBOARD_CTRL | KEYBOARD_SHIFT:[232], # --
        QtCore.Qt.Key_F5 | KEYBOARD_CTRL | KEYBOARD_SHIFT:   [233], # --
        QtCore.Qt.Key_Delete | KEYBOARD_CTRL | KEYBOARD_SHIFT:[234], # --
        QtCore.Qt.Key_F6 | KEYBOARD_CTRL | KEYBOARD_SHIFT:    [255], # reset
        QtCore.Qt.Key_F7  | KEYBOARD_CTRL | KEYBOARD_SHIFT:  [232], #  --
        QtCore.Qt.Key_F8  | KEYBOARD_CTRL | KEYBOARD_SHIFT:  [237], # Reset
        QtCore.Qt.Key_Backtab | KEYBOARD_CTRL | KEYBOARD_SHIFT:  [238], # --



#       map PC keyboard keys to HP special characters
        0xc4 : [21],                      # Ä
        0xd6 : [23],                      # Ö
        0xdc : [25],                      # Ü
        0xc4 | KEYBOARD_SHIFT : [22],     # ä
        0xd6 | KEYBOARD_SHIFT : [24],     # ö
        0xdc | KEYBOARD_SHIFT : [26],     # ü
        QtCore.Qt.Key_sterling : [30]    # Sterling

}

#
# add special shortcuts for macOS to the HP-71 and HP-75 keymap
#

if isMACOS():