It would be nice to add this in addition to Ctrl+V. And Ctrl+Insert for copying would also be nice since it seems to be a standard as well.
Interesting, I had never used this shortcut before but it seems to work on Windows at least.
Do you know if it's generally a cross platform thing? Do this differ in any way to CTRL+V ?
On linux shift+insert(and also the middle mouse button click) actually
pastes the last selected text, no need to be copied explicitly :)
On Mon, Jan 8, 2018 at 4:16 PM, omar notifications@github.com wrote:
Interesting, I had never used this shortcut before but it seems to work on
Windows at least.
Do you know if it's generally a cross platform thing? Do this differ in
any way to CTRL+V ?—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ocornut/imgui/issues/1541#issuecomment-355977800, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAT3Z5ODv7vdxBvQafGYvUM8YRh7o9xpks5tIiMsgaJpZM4RWaHY
.
I use it fairly often since it's configured as a single button on my keyboard.
I haven't tried it on Linux yet, but on Windows it doesn't work; I'm using GLFW and imgui 1.51.
@nayyden I don't imagine this to a be "Linux" thing but more like a feature of the terminal application you are using?
@tversteeg So we are looking at those:
Ctrl+Insert = Ctrl+C = COPY
Shift+Insert = Ctrl+V = PASTE
Shift+Delete = Ctrl+X = CUT
Until now imgui didn't know about the "Insert" key (it doesn't have a full keyboard layout). I was hoping to wait and add every key later but made an exception and added Insert already (see commit above).
The question is to know if adding those shortcuts to InputText() would be a problem but any user/OS based on their expectation.
These shortcuts seem to generally work on most applications on the OSes I've tried them on--Debian and Windows 10.
Added support for those shortcuts now.
Note that you will need to update your binding code to fill in the ImGuiKey_Insert key.
Interesting, I had never used this shortcut before but it seems to work on Windows at least.
Do you know if it's generally a cross platform thing? Do this differ in any way to CTRL+V ?
Just for note, Shift+Insert (and the other Shift+things) were the original Copy/Cut/Paste keys, supported by Windows, mac, unix's basically everywhere on everything. Windows added Ctrl+C/etc... to supplement them in Windows 3 (I remember when it was added ^.^). Shift+etc tend to work more universally than Ctrl+etc overall. :-)
Most helpful comment
Added support for those shortcuts now.
Note that you will need to update your binding code to fill in the ImGuiKey_Insert key.