[build 401 Bugs] Issues with assigning shortcut keys

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
Mathew
User
Posts: 838
Joined: Thu Jun 19, 2014 7:30 pm

[build 401 Bugs] Issues with assigning shortcut keys

Post by Mathew »

Two issues:
  1. When assigning certain shortcut keys, the Customize Toolbars… > Properties does not seem to report some built-in keyboard shortcuts. For example Ctrl+Shift+Up, Ctrl+Shift+Down both show up as not assigned:
    image(1).png
    image(2).png
    yet if I do assign them, they do not work, because there is a built-in command that is associated with them (goto first page, goto last page respectively) that overrides it even if the menu shows it:
    image.png
    I have similar issues with PageDown, PageUp and just with Ctrl+Up, Ctrl+Down, etc.
  2. A separate issue, in javascript, if using app.addMenuItem()

    Code: Select all

    cHotkey: 'Ctrl+Shift+End',
    It actually assigns Ctrl+Shift+PageDown !
You do not have the required permissions to view the files attached to this post.
User avatar
Sean - PDF-XChange
Site Admin
Posts: 1092
Joined: Wed Sep 14, 2016 5:42 pm

Re: [build 401 Bugs] Issues with assigning shortcut keys

Post by Sean - PDF-XChange »

Hi Mathew,

Thanks for the feedback/report - I've let the development team know.

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
User avatar
Mathew
User
Posts: 838
Joined: Thu Jun 19, 2014 7:30 pm

Re: [build 401 Bugs] Issues with assigning shortcut keys

Post by Mathew »

Thanks Sean. I just upgraded to build 403 and it's the same.

Here's a basic test script that shows the inconsistencies. Many of the shortcuts are listed when you export the CSV of shortcuts, but as noted above, not PageUp, PageDown, arrow keys, etc:

Code: Select all

// testing keyboard shortcuts

// with Ctrl
app.addSubMenu({
    cName: 'Ctrl_test',
    cParent: '',
});

[ 'Tab', 'ScrollLock', 'Insert', 'PageUp', 'PageDown', 'Home', 'End', 'Up', 'Down', 'Left', 'Right', 'NumPlus', 'NumMinus', 'Num0', 'Num1', 'Num2', 'Num3', 'Num4', 'Num5', 'Num6', 'Num7', 'Num8', 'Num9', 'NumDec'].forEach( (b,i) => {
    const sc = 'Ctrl+'+b;
    app.addMenuItem({
        cName: 'Ctrl_'+i,
        cUser: sc,
        cParent: 'Ctrl_test',
        cHotkey: sc,
        cExec: `app.alert('${sc}');`
        });
});

// with Ctrl+Shift
app.addSubMenu({
    cName: 'CtrlShift_test',
    cParent: '',
});

[ 'Tab', 'ScrollLock', 'Insert', 'PageUp', 'PageDown', 'Home', 'End', 'Up', 'Down', 'Left', 'Right', 'NumPlus', 'NumMinus', 'Num0', 'Num1', 'Num2', 'Num3', 'Num4', 'Num5', 'Num6', 'Num7', 'Num8', 'Num9', 'NumDec'].forEach( (b,i) => {
    const sc = 'Ctrl+Shift+'+b;
    app.addMenuItem({
        cName: 'CtrlShift_'+i,
        cUser: sc,
        cParent: 'CtrlShift_test',
        cHotkey: sc,
        cExec: `app.alert('${sc}');`
        });
});
User avatar
Dimitar - PDF-XChange
Site Admin
Posts: 2682
Joined: Mon Jan 15, 2018 9:01 am

Re: [build 401 Bugs] Issues with assigning shortcut keys

Post by Dimitar - PDF-XChange »

Thanks for the detailed problem report, Matthew.

I forwarded it to our developers for further investigation.

Regards.