quokka icon indicating copy to clipboard operation
quokka copied to clipboard

Atom: quokka-panel not respecting cmd-±

Open metasean opened this issue 6 years ago • 1 comments

Issue description

Click inside the "Quokka" panel. ⌘⎻+ should increase the font size, but does not ⌘⎻﹣ should decrease the font size, but does not

Quokka.js file

any

Quokka.js Console Output

any console output visible in the .quokka-panel-view / .quokka-results-view

Code editor version

Atom 1.19.3

OS name and version

OSX Sierra 10.12.3

Tried - Does not work

Since this is clearly a keybinding-related issue, I tried adding the following to my keymap.cson file, but it didn't have any effect.

'.platform-darwin .quokka-results-view':
 'cmd--': 'window:decrease-font-size'
  'cmd-+': 'window:increase-font-size'

Interestingly, I have several plug-ins that add panels, some require an additional keymap, and some don't.

'.platform-darwin .markdown-preview':
  'cmd-+': 'markdown-preview:zoom-in'
  'cmd-=': 'markdown-preview:zoom-in'
  'cmd--': 'markdown-preview:zoom-out'
  'cmd-_': 'markdown-preview:zoom-out'
  'cmd-0': 'markdown-preview:reset-zoom'

Stop-gap work-around for end users

In your Atom stylesheet, "styles.less", add:

.quokka-results-view {
  font-size: 120%; // modify value as appropriate
}

metasean avatar Aug 30 '17 15:08 metasean