{"action":"created","issue":{"url":"https://api.github.com/repos/roadrunner2/macbook12-spi-driver/issues/8","repository_url":"https://api.github.com/repos/roadrunner2/macbook12-spi-driver","labels_url":"https://api.github.com/repos/roadrunner2/macbook12-spi-driver/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/roadrunner2/macbook12-spi-driver/issues/8/comments","events_url":"https://api.github.com/repos/roadrunner2/macbook12-spi-driver/issues/8/events","html_url":"https://github.com/roadrunner2/macbook12-spi-driver/issues/8","id":302101158,"number":8,"title":"Keyboard shortscuts don't work with Touch Bar keys","user":{"login":"Dunedan","id":1735355,"avatar_url":"https://avatars1.githubusercontent.com/u/1735355?v=4","gravatar_id":"","url":"https://api.github.com/users/Dunedan","html_url":"https://github.com/Dunedan","followers_url":"https://api.github.com/users/Dunedan/followers","following_url":"https://api.github.com/users/Dunedan/following{/other_user}","gists_url":"https://api.github.com/users/Dunedan/gists{/gist_id}","starred_url":"https://api.github.com/users/Dunedan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dunedan/subscriptions","organizations_url":"https://api.github.com/users/Dunedan/orgs","repos_url":"https://api.github.com/users/Dunedan/repos","events_url":"https://api.github.com/users/Dunedan/events{/privacy}","received_events_url":"https://api.github.com/users/Dunedan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-04T16:50:35Z","updated_at":"2018-03-09T18:21:55Z","closed_at":null,"author_association":"NONE","body":"Following the [rollover problems with the keyboard](https://github.com/cb22/macbook12-spi-driver/issues/53), there is also an issue with key combinations involving the functions keys on the Touch Bar. I'm facing this issue since the beginning of `appletb`.\r\nCombinations involving `Ctrl + Alt + <a Touch Bar function key>` key simply don't work.\r\n\r\nE.g. with `fnmode = 2`:\r\n`Alt + F1` = works\r\n`Alt + Meta + F1` = works\r\n`Ctrl + F1` = works\r\n`Ctrl + Meta + F1` = works\r\n`Ctrl + Alt + F1` = doesn't work\r\n`Ctrl + Alt + Esc` = works\r\n`Ctrl + Alt + Fn + Esc` = works\r\n`Ctrl + Alt + Fn + Mute audio` = works\r\n`Ctrl + Alt + Meta + Esc` = works\r\n`Ctrl + Alt + Meta + F1` = doesn't work\r\n\r\nUsing `evtest` I looked into the events emitted by the Touch Bar. I noticed that all key presses emit an event of type `EV_KEY`, but the function keys also emit an `MSC_SCAN` event of type `EV_MSC` before. I'm not sure if that's relevant, but that's the only obvious difference I noticed so far."},"comment":{"url":"https://api.github.com/repos/roadrunner2/macbook12-spi-driver/issues/comments/371901306","html_url":"https://github.com/roadrunner2/macbook12-spi-driver/issues/8#issuecomment-371901306","issue_url":"https://api.github.com/repos/roadrunner2/macbook12-spi-driver/issues/8","id":371901306,"user":{"login":"Dunedan","id":1735355,"avatar_url":"https://avatars1.githubusercontent.com/u/1735355?v=4","gravatar_id":"","url":"https://api.github.com/users/Dunedan","html_url":"https://github.com/Dunedan","followers_url":"https://api.github.com/users/Dunedan/followers","following_url":"https://api.github.com/users/Dunedan/following{/other_user}","gists_url":"https://api.github.com/users/Dunedan/gists{/gist_id}","starred_url":"https://api.github.com/users/Dunedan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dunedan/subscriptions","organizations_url":"https://api.github.com/users/Dunedan/orgs","repos_url":"https://api.github.com/users/Dunedan/repos","events_url":"https://api.github.com/users/Dunedan/events{/privacy}","received_events_url":"https://api.github.com/users/Dunedan/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T18:21:55Z","updated_at":"2018-03-09T18:21:55Z","author_association":"NONE","body":"Under the assumption that you're running Xorg with something like `DontVTSwitch` (something I don't) I believe I figured out what the problem is:\r\n\r\nThe whole problem is related to VT switching under Xorg. Turns out, to switch to another VT Xorg requires the Ctrl + Alt + Fx key combination to come from a single input device. As the internal keyboard and the Touch Bar are two separate input devices, it doesn't work.\r\n\r\nI was able to reproduce this problem on a completely different computer with two external USB keyboards, which show the same behavior in that case. That also explains why it works for me when using an external USB keyboard with the MBP or when not running Xorg at all."}}
{"actor":{"display_login":"Dunedan"}}