mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-26 03:14:21 +03:00
Use API to find out if a browser window has a selection.
svn path=/trunk/netsurf/; revision=12683
This commit is contained in:
parent
f2e3b559f0
commit
ca162211f5
@ -202,11 +202,11 @@ static inline bool compare_float( float a, float b )
|
||||
SEL action = [item action];
|
||||
|
||||
if (action == @selector(copy:)) {
|
||||
return selection_defined( browser->sel );
|
||||
return browser_window_has_selection( browser );
|
||||
}
|
||||
|
||||
if (action == @selector(cut:)) {
|
||||
return selection_defined( browser->sel ) && browser->caret_callback != NULL;
|
||||
return browser_window_has_selection( browser ) && browser->caret_callback != NULL;
|
||||
}
|
||||
|
||||
if (action == @selector(paste:)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user