67492 Commits

Author SHA1 Message Date
John Scipione
475412d382 Tracker: Fix minor underline issue from hrev58610
Change-Id: I80098f8bb10ab5eb1b8c39b5acb698ea0163bd85
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8949
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2025-02-08 22:37:07 +00:00
John Scipione
0464dc83d9 BMenuItem: Fix Alt+1 to switch to icon mode in Tracker
... by setting the incoming shortcut instead of the old one
in BMenuItem::SetShortcut().

Fixes #19405 a regression hrev58611.

Change-Id: Iecf19a323f6b6ead288e3f1ef1169376b11cddb3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8948
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2025-02-08 22:37:07 +00:00
John Scipione
e4ef7b6075 Tracker: Redirect B_DELETE to BTextView if focused on one
Fixes #19404 a regression from hrev58560.

Change-Id: Iea6df69e04f5dccb8f91be506b5b7f85686c5eb1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8947
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
hrev58620
2025-02-08 22:02:29 +00:00
John Scipione
a502215d78 BPopUpMenu: Adds Alt back to pop up windows
... by calling Install() on Go() in BPopUpMenu.

Install() prepares item shortcuts and set missing targets to the
target window. Combined with hrev58611 for regular menus this
passes most of the shortcut prep work on to BWindow.

Fixes pop up portion of #19395 a regression from hrev58589.

Change-Id: I8a1615502e0d6e0b75f9cd3ca2a45d08b53d11ce
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8946
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
hrev58619
2025-02-08 17:59:44 +00:00
John Scipione
f28ee3ec24 BPopUpMenu: style updates, update copyright year to 2025
... and style fixes. Add myself as author.

Change-Id: I213ba5e1dabf1cf15db86c307fb3484231947332
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8945
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
hrev58618
2025-02-08 16:08:30 +00:00
Autocomitter
220fa7be4f Update translations from Pootle hrev58617 2025-02-08 08:08:54 +00:00
William Johnson
03d5061185 Installer: Do not copy SSH host keys into target.
Fixes #19113.

Change-Id: I8e837ba236de44fb76a6668e297bb1a554e62b24
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8944
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev58616
2025-02-07 20:07:44 +00:00
Augustin Cavalier
a3d331623c kernel/vm: Use CObjectDeleter in vm_copy_area rather than a custom class.
No functional change intended.
hrev58615
2025-02-07 13:50:40 -05:00
Augustin Cavalier
738615d678 kernel/file_cache: Use CObjectDeleter to unreserve pages.
There are error paths out of this method that may not have
properly unreserved pages, so use a CObjectDeleter so that
all possible cases are covered.
2025-02-07 13:50:19 -05:00
Augustin Cavalier
4f8eaff87f kernel/file_cache: Re-check the cache size after acquiring the lock.
If it changed, then don't try to do I/O past the end.
It would presumably just fail anyway, and since the
addition of extra asserts to VMCache page insertion,
will cause assertion failures due to inserting pages
past the end of the cache.

This case is particularly easy to trigger by holding
the down arrow in the keymaps list (i.e. changing keymaps
very rapidly.)
2025-02-07 13:46:50 -05:00
Augustin Cavalier
7a0fdd19a0 kernel/sem: Properly handle create_sem being called with a negative count.
It doesn't make much sense to do this, and the Be Book specifies that
doing so will return an error. A user on the mailing list tested
against BeOS and confirmed that it does reject this, so we should too.
hrev58614
2025-02-07 13:06:43 -05:00
Augustin Cavalier
1e56d889ee kernel/sem: Move variable declarations in create_sem_etc closer to use.
No functional change intended.
2025-02-07 12:48:56 -05:00
Augustin Cavalier
855d7cef68 Tracker: Add comment in empty_trash about RemoveItemAt(0).
From review by Axel on the mailing lists.
hrev58613
2025-02-07 12:43:36 -05:00
Augustin Cavalier
43741b0b91 Tracker: Fix sorting of filtered pose lists.
Fixes #19399.
hrev58612
2025-02-07 12:19:22 -05:00
John Scipione
5ee786c31f Interface Kit: Fix missing Alt key in menu shortcuts
The shortcut detection was working, just not the display of the
modifiers in the menu. I've added back the necessary code to fix
this in BMenuItem.

BWindow does the heavy lifting of preparing the keys and
modifiers. I have changes _FindShortcut() used by BMenuItem to
send the prepared modifiers back to BMenuItem.

Set the parameters raw in the constructor, they will get fixed
up in Install().

I also make sure to use the prepped version of the key and mods
in BWindow::AddShortcut() to remove the old one. This is a minor
update that eliminates an edge failure case of malformed input.

Fixes #19395 a regression from hrev58589.

Change-Id: I4333f89149ff843f92dbffbd53d58ffc2def6760
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8943
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
hrev58611
2025-02-07 17:00:56 +00:00
John Scipione
2c7072f33c Tracker: Fix label redraw issues in mini-icon mode
... and center label vertically.

Fixes #18826

Change-Id: If96ce2089cbf8345d147d39b091317168bcf5c1a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8886
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: John Scipione <jscipione@gmail.com>
hrev58610
2025-02-06 22:08:11 +00:00
John Scipione
3527a0ee23 Tracker: Fix garbled text when dragging cut poses
* Determine whether we're currently dragging by looking at the
  current window message what, dragging replaces direct in a few
  places especially crucial to drawing semi-transparent dragged
  items correctly.
* Export kMsgMouseDragged and kMsgMouseLongDown to the BPoseView
  header to check for dragging (but still in BPrivate).
* Turn on outline label drawing for dragged items and remove TODO.

Fixes #6461

Change-Id: I45cd401299dec408b76cb4b9ce1e9350ed59ef5b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8842
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2025-02-06 22:08:11 +00:00
John Scipione
44d74ab075 Tracker: Refactor BPoseView and BPose drawing
* Create a DrawTextWidget() method in BPose to share drawing
  between list and icon modes.
* Remove direct param from BPose::DrawIcon() and remove the state
  changes from that method.
* Remove direct parameter from TextWidget::Draw(), we can calc it.
* Refactor BPose::Draw() to set the LowColor() only. This is now
  considerably more simple to read and understand.
* Refactor ColumnRedraw() to reset colors and drawing mode.
* Many explanatory comments added.

* Remove BackColor() and TextColor(), use LowColor() and HighColor().
* Use AdoptSystemColors() and HasSystemColors() to set colors.
  These are virtual in BPoseView and the colros are overridden by
  DesktopPoseView, OpenWithPoseView and QueryPoseView.
* Add ReadOnlyTint() version to Utilities that takes a color_which.
* Rename InvertedBackColor() to InvertColorSmart().
* Force Edit name select box background color to be black/or white
  depending on the inverse of your background color on Desktop
  instead of using document colors.
* Determine if volume is read-only by pose instead of its parent,
  this fixes a bug where read-only volumes mounted on a read-write
  directory like the Desktop had an editable name even though they
  were not supposed to. It wouldn't let you change the name though.

* Remove fIsDesktop param from BPoseView, use only IsDesktopView()
  now except in FilePanelPoseView when navigating to the Desktop.
* Update BContainerWindow, DesktopPoseView and FilePanelPoseView
  to adjust to this change. IsDesktopView() is always true for
  DesktopPoseView, never true otherwise.
* DesktopPoseView disambiguated further from BPoseView. Add a few
  virtual override methods.
* Custom Brightness() value on DesktopPoseView based on the default
  Desktop color.
* Respond to B_WORKSPACE_ACTIVATED and B_RESTORE_BACKGROUND_IMAGE
  messages to update the Desktop text color.

Change-Id: I122dbeab668244772012656a59cbba3050245f44
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8885
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2025-02-06 22:08:11 +00:00
John Scipione
0ed8ac17f2 Tracker: Do not start editing file name while dragging
Change-Id: Ibf215fb2dd1ed2cac56c0db47fab788f8b99646f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8867
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2025-02-06 22:08:11 +00:00
John Scipione
c24ebeeacf Tracker: Code simplifications related to dragging
Pass buttons into DragSelectedPoses instead of calling GetMouse(),
and bail out if a mouse button is not down.

Eliminate HeaderView::fMouseDown, get buttons from CurrentMessage()
instead. Reduce icon_track indent by breaking early on invalid.

Add B_WILL_DRAW flag to bitmap drawing view.

Refactor BPoseView::MakeDragBitmap().

Move DragStart(), DragEnd(), Dragging(), (now IsDragging())
DragMessage() and related method parameters from BContainerWindow
to BPoseView. This avoids having to dynamic_cast to get the window
from the pose view.

Put bool params at the bottom of the BPoseView class with width 1
to facilitate packing.

Remove buttons parameter from WasDoubleClick() and get from
Window()->CurrentMessage() instead (along with clicks).

Change-Id: I94b345e44af7b1136f94ded02e9c2a118188a877
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8841
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2025-02-06 22:08:11 +00:00
John Scipione
0f3d21e82d Tracker: Style fixes related to dragging
Change-Id: I540263aeb58710a1c1a2747a9d5784614a5fd791
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8882
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2025-02-06 22:08:11 +00:00
Augustin Cavalier
8854ac7e4c Tracker: Fix crash when trying to empty Trash.
Another regression from yesterday's refactor.
hrev58609
2025-02-06 12:39:37 -05:00
Pascal Abresch
ff0dd27345 WebPositive: remove gopher from supported protocols
Goodbye sweet prince!
This hasen't worked for quite some time, Webkit uses the curl backend
currently which has no support for gopher.

Our netkit backend also never "truely" supported gopher, instead
translating pages to html with some prebuild styles, those also don't
use the CSS system colors, for lack of existence back then.

Change-Id: I5d5098db9512bb22cde8c17fa1553637b30ae65b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8938
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev58608
2025-02-06 17:26:58 +00:00
Augustin Cavalier
a52800c6db Tracker: Properly check fOwning before deleting items in RemoveItem. hrev58607 2025-02-06 02:18:52 -05:00
Augustin Cavalier
cd482d648c kernel: Fix USE_GUARDED_HEAP_FOR_OBJECT_CACHE after object_cache refactors.
And allow it to be enabled even if the guarded heap itself
technically is not.
hrev58606
2025-02-05 19:12:22 -05:00
Augustin Cavalier
cbfbbf6d4d Change BObjectList to take "owning" as a template parameter and adjust all consumers.
Since BObjectList is a template class, this only breaks ABI where
BObjectList was exposed in public methods, and even then it's only
a name mangling break and we should be able to add compatibility
methods if necessary.

(The old "bool owning" member variable is left intact for ABI
compatibility, for the moment, though it's otherwise unused now.)

Tracker's PoseList is the only remaining type that has a "bool owning"
switch in the constructor rather than template parameters.

This should significantly improve the output of static code analysis
tools that previously detected list operations as causing use-after-frees
and double-frees, as well as make code maintenance easier by making it
easier to determine what list owns (or does not own) an object.
It should also be a minor performance optimization, since the branches
for calls to delete/free should now be optimized out altogether.

Still boots to desktop and Tracker, Deskbar, Debugger all tested
and verified as working.

Change-Id: If2a24a6f0d22e7a506ef554fcfdd328907279ed4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8915
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev58605
2025-02-06 00:06:32 +00:00
Augustin Cavalier
007126ed6f Keymap: Change GetModifiedCharacters API to return BStringList.
Simplifies the API and makes ownership semantics clearer.

Change-Id: I59d2e3ef8055253e85943500fb65356762055c54
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8914
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2025-02-06 00:06:32 +00:00
Augustin Cavalier
3e245f7b20 Tracker & Deskbar: Use BStringList instead of BObjectList<BString>.
It's more efficient, and conveys ownership semantics more clearly.

Change-Id: Ia42b018faaa7c8c7347020afbf1be9dfafe0fed8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8913
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2025-02-06 00:06:32 +00:00
John Scipione
49d3b2a142 Tracker: Fixup hardcoded values for ModelMenuItem padding
This is to make BMenuBar and BMenu margins the same.

The hardcoded menu item margin numbers come from this math on what the
BMenu and BMenuBar item margins respectively used to be a long time ago:
14 - 8 = 6 // for left margin
(14 + 20) - (8 + 8) = 18 // for left + right margin

We have since updated these margins so they need to be recalculated.
Use BPrivate::MenuPrivate to get the new margin deltas.

IconMenuItem and ModelMenuItem classes are used by Tracker add-ons and
those can be in the menu bar as well.

Change-Id: Ie4147c31e6b19764cb36b9c414f7e91c47b7d9bd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8905
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
hrev58604
2025-02-05 16:38:08 +00:00
Jérôme Duval
b5eb38ec58 shared: use the correct delete for array
to silence libasan on libtracker.so

Change-Id: I7c634271f4ec2b4ca0d5f76c18ddbfc7dddf2793
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8910
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
hrev58603
2025-02-05 16:35:47 +00:00
Jérôme Duval
b71707da2c kernel: comment should match the guard macro
Change-Id: I4cfa9eda18f3502e50adff9ffa8ded47f318f372
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8909
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
hrev58602
2025-02-05 16:35:23 +00:00
John Scipione
def8a585fa BuildSetup: ld on darwin does not support --no-as-needed
Change-Id: I2f5ada95d5f8b346374aebc3a1a8114f345cb29f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8906
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev58601
2025-02-04 17:27:04 +00:00
Jérôme Duval
d59339ff6c x86_cstates: disable C5 and C6 states on Skylake
could help with #19341

see https://bugzilla.kernel.org/show_bug.cgi?id=109081

Change-Id: Ide72f46193093c3c4695c39d4466e9418808cbd0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8881
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev58600
2025-02-04 17:22:34 +00:00
Jérôme Duval
6c380f3c8e kernel/x86: add definitions for cpuid leaves
remove feature_5_ecx

Change-Id: I247a37c875e5dd04f2239fdceeef67e402b1245d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8880
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2025-02-04 17:22:34 +00:00
PulkoMandy
af5f256338 InterfaceDefs: complete ASCII control char definitions
Make it clear that this enum just defines ASCII control characters, and
there is no 'free space'. Also add comment showing which key combination
produces each control character.

Change-Id: I01884132842281cce6c13dd9398b1aeddadae58a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8899
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev58599
2025-02-04 17:19:28 +00:00
Augustin Cavalier
1283ca4cf4 unzip: Restore crypt.h.
This is still needed even if crypt.c now isn't.
hrev58598
2025-02-04 01:16:22 -05:00
Augustin Cavalier
a1448cbdcd unzip: Drop unneeded files and Jam rules.
We only use this for the host tools now, so a lot of the files
can just be deleted altogether.
hrev58597
2025-02-04 01:13:06 -05:00
Augustin Cavalier
97d45387df headers/find_directory_private: Don't rely on <sys/cdefs.h>.
This header is included by the build headers, and musl doesn't
provide sys/cdefs.h.

Fixes the build of the standard host tools under musl.
2025-02-04 01:13:06 -05:00
Augustin Cavalier
62f8ef3a7f BuildSetup: Clean up HOST_KERNEL and linking rules.
* Drop all HOST_KERNEL_* definitions, they aren't used or needed
   anymore, it seems.

 * Use --no-as-needed unconditionally; it works under Clang+LLD now.
   (and indeed it's still needed for the "unzip" host tool to
   compile and link properly.)

 * Drop --copy-dt-needed-entries. It was added around the time of
   GCC 10, but it seems that it's not needed anymore, or at least I
   did a minimum build having compiled the host tools without it
   and all seemed to be fine. Furthermore, it seems lld doesn't support
   it, so this fixes the build under FreeBSD and other platforms
   that also don't use ld.bfd same as Darwin/macOS.
2025-02-04 01:13:06 -05:00
Jérôme Duval
aedcf2476d virtualkeyboard: update keymap when it changed
load current keymap on start

Change-Id: I1030cf5aaf9641f7e915f8fc10dec3144cab014f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8904
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev58596
2025-02-03 21:27:47 +00:00
Niklas Poslovski
6670202514 ControlLook: Use B_PANEL_TEXT_COLOR for scrollbar arrows
Change-Id: I7a291842eeaaba00176cb4473a075fad1d3d6293
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8895
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev58595
2025-02-03 17:18:51 +00:00
Jérôme Duval
0328ffe12a virtualkeyboard: add a hook for ScreenChanged()
Change-Id: I18d2a4e7e29858406c75dae54c6ea6c5f5e0c26b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8903
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev58594
2025-02-03 17:14:39 +00:00
Jérôme Duval
9d2283baab virtualkeyboard: style fixes
Change-Id: Iee76c0cae38a0677b60e51f73aa0e2e5d9b7c2ee
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8902
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2025-02-03 17:14:39 +00:00
Jérôme Duval
c8cd427e30 build: extend stack protection
* use -fstack-protector-strong and -fstack-clash-protection
* also bin and some user add-ons

Change-Id: I593365e55414ac447bde54980a5c73202e9bb172
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8887
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev58593
2025-02-03 17:14:18 +00:00
Pascal Abresch
e4c39f6a93 build: use command -v instead of which
Change-Id: Iec85bc1a2d5f2f3a88eae66ae1883c1301e1d3ba
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8875
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Máximo Castañeda <antiswen@yahoo.es>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev58592
2025-02-03 14:13:34 +00:00
John Scipione
5610706bb6 BMenuItem: Remove _DrawFunctionChar() cruft added in hrev58589
Change-Id: I7fbc1dc194be91705646f6e822d03e9773bd649a
hrev58591
2025-02-03 02:39:27 -05:00
John Scipione
16c6cc4418 BTextView: Fixup AdoptSystemColors() and HasSystemColors()
Replace private _UsesSystemColors() with public HasSystemColors()
and make sure to consider the tints when checking if system colors
are used or not.

Document HasSytemColors() in the Haiku Book.

Change-Id: I78de4904d5ddb24b98ad27eb93d4e5ccb330d76a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8897
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev58590
2025-02-03 00:14:52 +00:00
John Scipione
74ef92bc55 BTextView: Update word-wise/line-wise shortcuts
... and set alternates. This is updated because we can now set
shortcuts without B_COMMAND_KEY. Setup Alt for Win/Linux mode.

* Word-wise shortcuts Option+arrows.
* Line-wise shortcuts Alt+arrows AND Ctrl+arrows for
  Win/Linux mode and for when there's a conflict.

Otherwise these shortcuts are not expected to conflict.

Add shortcuts for Alt+Backspace and Alt+Delete to delete to
the beginning or end of line instead of word.

Split out vertical and horizontal shortcuts so that if one is
used by an app we at least get the other one.

Fixes #9913

Change-Id: I0124fec7df4585a70ded8d3e7bf2aa8cb4acecb4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7289
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev58589
2025-02-02 19:18:35 +00:00
John Scipione
58339b6be4 Tracker: Change "Move to Trash" shortcut to plain DEL
... without Command. Shift+B_DELETE to skip Trash.

Change-Id: Ibd334b62154f488b91d1e0aaf287f478724f38a1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7178
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
2025-02-02 19:18:35 +00:00
John Scipione
540ae21864 MediaPlayer: Delete playlist items use plain old delete
... fixing a TODO now that #7078 is fixed.

There are 2 remove playlist actions: 'Remove' and 'Move file to Trash'

* 'Remove' playlist shortcut: Cmd+Delete => Delete
  (This also works from the main window to remove the file you're
   currently focused on/listening to from the playlist.)
* 'Remove file from playlist' shortcut has been removed. We have
  decided not to Trash files from MediaPlayer's playlist anymore,
  you'll have to trash the files from a regular Tracker window.

The 'Remove' shortcut gets plain old delete as the author intended.

Change-Id: I3b1e19405e029d9c5f398cfd7a8dbab49fb21fc7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7292
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Reviewed-by: John Scipione <jscipione@gmail.com>
2025-02-02 19:18:35 +00:00