edbee / edbee-lib

QWidget based Text Editor Component for Qt. Multi-caret, Textmate grammar and highlighting support.
Other
75 stars 26 forks source link

HOME and END keyboard keys does not work in the editor on OSX #146

Closed vadi2 closed 1 month ago

vadi2 commented 2 months ago

HOME and END keyboard keys does not work in the editor on OSX, see https://github.com/Mudlet/Mudlet/issues/4408

gamecreature commented 2 months ago

I've just tested this issue in the edbee-app.

HOME and END just work like expected (on OSX)

Home uses the keybinding 'move_to_start_of_document' in edbee/data/factorykeymap.cpp:31

add( "goto_bof", "move_to_start_of_document" );

Which is converted to the following key sequence in edbee/models/texteditorkeymap.cpp:285

h.insert( "move_to_start_of_document", QKeySequence::MoveToStartOfDocument );

Which is a normal Qt QKeySequence. https://doc.qt.io/qt-6/qkeysequence.html#StandardKey-enum Is it possible the cause is a custom keymap?

rparet commented 1 month ago

Just added a note to https://github.com/Mudlet/Mudlet/issues/4408 but tl;dr I believe this is working as designed.