Author Topic: RC5: keystrokes from dialogs leak into buffers  (Read 5608 times)

astromme

  • Senior Community Member
  • Posts: 142
  • Hero Points: 1
RC5: keystrokes from dialogs leak into buffers
« on: November 07, 2014, 06:45:07 PM »
When I have the buffers dialog open (list-buffers) if I hold down Alt+D to close a bunch of buffers the Alt+D will "leak" into the buffer that normally has focus, deleting lines (Alt+D is mapped to delete-line).

This happens with other commands too.. after opening various dialogs, I'll have various letters show up in random places in buffers that had focus, and those files show the asterisk near the filename noting a change.  If I undo, they clean up fine, but these keystrokes should NOT have gotten there.

This is a common occurrence on Ubuntu - I don't recall having seen it in Windows.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: RC5: keystrokes from dialogs leak into buffers
« Reply #1 on: November 07, 2014, 07:04:24 PM »
I've had this happen on windows too.

JeffB

  • Senior Community Member
  • Posts: 326
  • Hero Points: 14
Re: RC5: keystrokes from dialogs leak into buffers
« Reply #2 on: November 08, 2014, 02:31:33 AM »
I see this frequently too. Something like "ctrl-f" to bring up the Find/Replace disalog and I immediately start typing, but the first few characters go into the edit buffer instead of the Find/Replace dialog.

lambertia

  • Senior Community Member
  • Posts: 382
  • Hero Points: 14
  • I have nothing sufficiently witty to say.
Re: RC5: keystrokes from dialogs leak into buffers
« Reply #3 on: November 08, 2014, 03:59:27 AM »
That explains the weird compilation errors I get sometimes!

Graeme

  • Senior Community Member
  • Posts: 2765
  • Hero Points: 342
Re: RC5: keystrokes from dialogs leak into buffers
« Reply #4 on: November 08, 2014, 11:12:44 AM »
When I have the buffers dialog open (list-buffers) if I hold down Alt+D to close a bunch of buffers the Alt+D will "leak" into the buffer that normally has focus, deleting lines (Alt+D is mapped to delete-line).

This happens with other commands too.. after opening various dialogs, I'll have various letters show up in random places in buffers that had focus, and those files show the asterisk near the filename noting a change.  If I undo, they clean up fine, but these keystrokes should NOT have gotten there.

This is a common occurrence on Ubuntu - I don't recall having seen it in Windows.
I don't think holding down keys is a great idea.  In the list-buffers dialog you can use multi-select then press delete to close all the selected buffers.

Graeme

  • Senior Community Member
  • Posts: 2765
  • Hero Points: 342
Re: RC5: keystrokes from dialogs leak into buffers
« Reply #5 on: November 08, 2014, 11:32:26 AM »
I see this frequently too. Something like "ctrl-f" to bring up the Find/Replace disalog and I immediately start typing, but the first few characters go into the edit buffer instead of the Find/Replace dialog.
That's a different situation.  You need to allow the dialog time to open, or keep it open.  It's likely possible to write a macro that buffers keypresses until the dialog is open, or maybe use the / command on the slick command line, or incremental search.

hs2

  • Senior Community Member
  • Posts: 2759
  • Hero Points: 292
Re: RC5: keystrokes from dialogs leak into buffers
« Reply #6 on: November 09, 2014, 10:34:55 AM »
Quote
You need to allow the dialog time to open, or keep it open.
I think in general this should be handled gracefully by applications 'to do exactly, what the user wants it to do'.
Just my 2ct, HS2
« Last Edit: November 09, 2014, 11:10:10 AM by hs2 »

Graeme

  • Senior Community Member
  • Posts: 2765
  • Hero Points: 342
Re: RC5: keystrokes from dialogs leak into buffers
« Reply #7 on: November 09, 2014, 11:06:14 AM »
Quote
You need to allow the dialog time to open, or keep it open.
I think in general this should be handled gracefully by applications 'to do exactly, what the user want's it to do'.
Just my 2ct, HS2
Sure, it was reported here too
http://community.slickedit.com/index.php/topic,10511.msg44319.html#msg44319
so maybe it's being considered.  On my PC, the dialog comes up faster than I can type.

astromme

  • Senior Community Member
  • Posts: 142
  • Hero Points: 1
Re: RC5: keystrokes from dialogs leak into buffers
« Reply #8 on: November 19, 2014, 11:19:19 PM »
I see this frequently too. Something like "ctrl-f" to bring up the Find/Replace disalog and I immediately start typing, but the first few characters go into the edit buffer instead of the Find/Replace dialog.
That's a different situation.  You need to allow the dialog time to open, or keep it open.  It's likely possible to write a macro that buffers keypresses until the dialog is open, or maybe use the / command on the slick command line, or incremental search.

I'm not sold it's a different situation.  If I look at the buffers dialog, when I close a file the window outline appears to be redrawn - does this close and reopen the window?

Anyway, I agree with hs2 - this just needs to work.  Having keystrokes not go to the dialog that I just requested because I didn't wait long enough is not reasonable.