Author Topic: SlickEdit 2017 can't save key binding  (Read 2757 times)

Ivkgn

  • Junior Community Member
  • Posts: 6
  • Hero Points: 0
SlickEdit 2017 can't save key binding
« on: February 22, 2018, 06:12:45 AM »
Can add a new key binding but after applying, leaving the tools->options->key binding dialog, and reopenning it the new binding is gone. Could not find any lock.  A Windows 10 installation.
« Last Edit: February 22, 2018, 06:15:30 AM by Ivkgn »

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: SlickEdit 2017 can't save key binding
« Reply #1 on: February 22, 2018, 02:46:29 PM »
Is it possible you bound the key for just one mode?

Ivkgn

  • Junior Community Member
  • Posts: 6
  • Hero Points: 0
Re: SlickEdit 2017 can't save key binding
« Reply #2 on: February 22, 2018, 07:27:39 PM »
It seems it is always default mode. Don't see a way to change this.
Tried different emulations though. It seems like it is added to the cfg.xml file if exported:
<options emulation="CUA">
   <profile n="eventtab_profiles.emulation-CUA" version="1">
      <p n="'c' 't' 'r' 'l' '+' 'LBUTTON-DOWN'" v="goto-tag"/>
      <p n="'C-A-LBUTTON-DOWN'" v="push-tag"/>
   </profile>
</options>
but the key binding dialog does not have it.

Ivkgn

  • Junior Community Member
  • Posts: 6
  • Hero Points: 0
Re: SlickEdit 2017 can't save key binding
« Reply #3 on: February 22, 2018, 07:36:19 PM »
Sorry, actually I did try a few bind to mode variations with the same result.

Ivkgn

  • Junior Community Member
  • Posts: 6
  • Hero Points: 0
Re: SlickEdit 2017 can't save ctrl/alt mouse event binding
« Reply #4 on: February 27, 2018, 12:44:16 AM »
Yet another correction. Key binding can be saved, but not ctrl/alt mouse event binding.
« Last Edit: February 27, 2018, 12:58:44 AM by Ivkgn »

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: SlickEdit 2017 can't save key binding
« Reply #5 on: February 27, 2018, 02:38:56 PM »
I am not able to reproduce any issues with Tools > Options > Key Bindings with mouse events.  Tried different emulations and was able to successful add and remove different combinations of mouse events.   If both "Search by command" and "Search by key sequence" are empty, should be able to see all commands and key sequences for every mode.

Ivkgn

  • Junior Community Member
  • Posts: 6
  • Hero Points: 0
Re: SlickEdit 2017 can't save key binding
« Reply #6 on: February 28, 2018, 09:07:14 PM »
Adding Ctrl+LButtonUP binding to the mou-push-tag command does not work.
It disappears after the Key Bindings dialog is closed (i.e. is not there when the dialog is re-opened after applying). The emulation/mode makes no difference. Is there something special about the command?

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: SlickEdit 2017 can't save key binding
« Reply #7 on: February 28, 2018, 09:27:36 PM »
Thanks, that is the piece of information I was missing.  I am able to reproduce the issue now, I am going to file a defect and investigate why that one is not behaving.

Ivkgn

  • Junior Community Member
  • Posts: 6
  • Hero Points: 0
Re: SlickEdit 2017 can't save key binding
« Reply #8 on: February 28, 2018, 09:32:53 PM »
I believe there are some other combinations that don't work with mouse bindings either, push-tag for example. Perhaps just some subtle application logic bug.
« Last Edit: February 28, 2018, 09:34:46 PM by Ivkgn »

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: SlickEdit 2017 can't save key binding
« Reply #9 on: February 28, 2018, 09:39:52 PM »
It appears to be specific to LButtonUp/MButtonUp/RButtonUp events only.  Looks like it is not translated correctly from the options form to the event table and fails silently.  This should be hotfixable, working on an update now.