3

I would like to know if there is a possibility for web applications to make use of the touch bar (like a JS api).

The touchbar would be a wonderful way to navigate through a website and surely enough the guys at Apple will have noticed this as well.

Still, I can not find any trace of an API.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Armin Hierstetter
  • 1,078
  • 2
  • 12
  • 27
  • I would be surprised if that was possible in the same unlimited fashion as the native API exposes. A website being able to override the browser application sounds somewhere between annoying and insecure. – deceze Dec 02 '16 at 11:32
  • I am thinking in terms of displaying custom buttons in the touchbar. Like a navigation menu. I do not see any reason why this should not be done. – Armin Hierstetter Dec 02 '16 at 12:11
  • Because the browser already displays custom buttons in this space. If your webpage could access the Touch Bar, the browser buttons will disappear. – PopKernel Dec 03 '16 at 03:11
  • 1
    So the browser buttons would disappear – so what? It could be easily set in prefs if websites are allowed to overwrite those buttons. I think that the advantages of having a custom navigation set by the website is a far greater advantage than risk factor. I do hope that Apple will issue an API for this. – Armin Hierstetter Dec 04 '16 at 08:34

1 Answers1

2

Here is bug in Bugzilla with this feature

Ilya
  • 21
  • 3