pqrs-org / Karabiner-archived

Karabiner (KeyRemap4MacBook) is a powerful utility for keyboard customization.
https://pqrs.org/osx/karabiner/
The Unlicense
3.82k stars 311 forks source link

How to "press" Ctrl+Break using Karabiner and mac keyboard #854

Open VoronyukM opened 6 years ago

VoronyukM commented 6 years ago

I use Parallels and I need to "press" Ctrl+Break combination in Windows that works in Parallels VM.

I've tried to write in private.xml:

<?xml version="1.0"?>
<root>
  <item>
    <name>Ctrl+- to Ctr+Break</name>
    <identifier>private.ctrl_minus_to_ctrl_break</identifier>
    <autogen>__KeyToKey__ KeyCode::MINUS, ModifierFlag::COMMAND_R, KeyCode::PC_PAUSE, VK_CONTROL</autogen>
  </item>
</root>

but this not work.

I've tried to inspect EventViewer output, but there is only

eventType:keyMod          code:0x36       name:Command_R       flags:Cmd                                misc:KeyCode::COMMAND_R characters:    
eventType:keyMod          code:0x36       name:Command_R       flags:                                   misc:KeyCode::COMMAND_R characters:    
eventType:keyMod          code:0x3b       name:Control_L       flags:Ctrl                               misc:KeyCode::CONTROL_L characters:    
eventType:keyMod          code:0x3b       name:Control_L       flags:                                   misc:KeyCode::CONTROL_L characters:    

Also the code:

<?xml version="1.0"?>
<root>
  <item>
    <name>Ctrl+- to Break</name>
    <identifier>private.ctrl_minus_to_break</identifier>
    <autogen>__KeyToKey__ KeyCode::MINUS, ModifierFlag::COMMAND_R, KeyCode::PC_PAUSE</autogen>
  </item>
</root>

leads to monitor brightness up (like Fn+F2).

EventViewer output in this case:

eventType:keyMod          code:0x36       name:Command_R       flags:Cmd                                misc:KeyCode::COMMAND_R characters:    
eventType:keyMod          code:0x36       name:Command_R       flags:                                   misc:KeyCode::COMMAND_R characters:    

I.e. no information about Pause/Break in EventViewer.

What i'm doing wrong? Thanks in advance!