Backspace (delete) on Mac doesn't work


(Hawken King) #1

Hi, pretty simple really, this key doesn’t work on Mac (the delete key above Enter), need to go to Edit > Delete to use.

Would be nice to have for workflow speed!


(Thorbjørn Lindeijer) #2

Hmm, I can’t reproduce this in Tiled 0.18.2 on OS X 10.11, where both Delete and Back Space keys are working for me. Are you using the latest version?

Note that I don’t have an Apple keyboard though, I have a US-International keyboard attached to it.


(Hawken King) #3

I looked into a few other apps that use the delete key and it’s usually abbreviated “del”.

In Tiled it’s a backwards arrow like box with an X in, this sadly isn’t part of OSX keyboards.

I tried a few other combinations, can confirm this is not accessible from the 108 (full) keyboard, the small bluetooth one or macbook keyboards.


(Thorbjørn Lindeijer) #4

Heh, I just realized I’ve looked at the same thing last year:

https://github.com/bjorn/tiled/issues/1296

I’m afraid that without an Apple keyboard I’m not exactly sure what to do here. Is there any chance you could try compiling Tiled yourself, and fiddle around with the delete shortcuts in the mainwindow.cpp?


(Hawken King) #5

I had a dig around mainwindow.cpp, not really familiar with C++ but MSDN says it’s VK_BACK or KEY_BACKSPACE

In mainwindow.cpp its deleteKeys.prepend(QKeySequence(Qt::Key_Backspace)) so by all accounts should work? Maybe this line can’t be accessed somehow on OSX?