mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +00:00
MacPDF: Make opt-up and opt-down always go to previous / next page
When the outline has focus, arrow keys navigate the outline instead of changing the current page. Add opt-up and opt-down as a way to move by one page even when the outline has focus. (This matches Preview.app.) xib change: Added two menu Previous Page with key equivalent opt-up and Next Page with key equivalent opt-down to Go menu and bound them to goToPreviousPage: and goToNextPage: on First Responder. When the outline has focus, the responder chain is outline -> window, so also add the actions on the window controller, and let that forward to the PDF view.
This commit is contained in:
parent
44f7d7406c
commit
627b152d49
5 changed files with 45 additions and 6 deletions
|
@ -639,10 +639,22 @@
|
|||
<modifierMask key="keyEquivalentModifierMask"/>
|
||||
<menu key="submenu" title="Go" id="u8F-oH-oMu">
|
||||
<items>
|
||||
<menuItem title="Go to Page…" keyEquivalent="g" id="Ou1-5M-LzJ">
|
||||
<menuItem title="Previous Page" keyEquivalent="" id="Ou1-5M-LzJ">
|
||||
<modifierMask key="keyEquivalentModifierMask" option="YES"/>
|
||||
<connections>
|
||||
<action selector="goToPreviousPage:" target="-1" id="e1c-zc-WR6"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Next Page" keyEquivalent="" id="mfm-mG-pLT">
|
||||
<modifierMask key="keyEquivalentModifierMask" option="YES"/>
|
||||
<connections>
|
||||
<action selector="goToNextPage:" target="-1" id="lt2-m9-Iyp"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem title="Go to Page…" keyEquivalent="g" id="pzP-g1-BeT">
|
||||
<modifierMask key="keyEquivalentModifierMask" option="YES" command="YES"/>
|
||||
<connections>
|
||||
<action selector="showGoToPageDialog:" target="-1" id="hmq-Sy-pJC"/>
|
||||
<action selector="showGoToPageDialog:" target="-1" id="fPI-BN-18g"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
</items>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue